⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 calc.frm

📁 电子衡自动计量系统.能对电子汽车衡进行自动计量.完成车皮存储,重车自动除皮等功能.
💻 FRM
📖 第 1 页 / 共 2 页
字号:
VERSION 5.00
Begin VB.Form Calculator 
   AutoRedraw      =   -1  'True
   BackColor       =   &H00C0C0C0&
   BorderStyle     =   1  'Fixed Single
   Caption         =   "计算器"
   ClientHeight    =   3990
   ClientLeft      =   2580
   ClientTop       =   1485
   ClientWidth     =   5100
   ClipControls    =   0   'False
   BeginProperty Font 
      Name            =   "Arial"
      Size            =   10.5
      Charset         =   0
      Weight          =   700
      Underline       =   0   'False
      Italic          =   0   'False
      Strikethrough   =   0   'False
   EndProperty
   Icon            =   "Calc.frx":0000
   LinkMode        =   1  'Source
   MaxButton       =   0   'False
   MDIChild        =   -1  'True
   PaletteMode     =   1  'UseZOrder
   ScaleHeight     =   3990
   ScaleWidth      =   5100
   WhatsThisButton =   -1  'True
   WhatsThisHelp   =   -1  'True
   Begin VB.CommandButton Command4 
      BackColor       =   &H00C0E0FF&
      Caption         =   "复制"
      Height          =   612
      Left            =   3960
      Style           =   1  'Graphical
      TabIndex        =   23
      Top             =   360
      Width           =   852
   End
   Begin VB.CommandButton Command3 
      Caption         =   "RET"
      Height          =   492
      Left            =   3840
      TabIndex        =   22
      Top             =   2520
      Width           =   732
   End
   Begin VB.CommandButton Command2 
      Caption         =   "MR-"
      Height          =   492
      Left            =   3840
      TabIndex        =   21
      Top             =   1920
      Width           =   732
   End
   Begin VB.CommandButton Command1 
      Caption         =   "MR+"
      Height          =   492
      Left            =   3840
      TabIndex        =   20
      Top             =   1320
      Width           =   732
   End
   Begin VB.CommandButton Number 
      Caption         =   "7"
      Height          =   480
      Index           =   7
      Left            =   600
      TabIndex        =   7
      Top             =   1320
      Width           =   480
   End
   Begin VB.CommandButton Number 
      Caption         =   "8"
      Height          =   480
      Index           =   8
      Left            =   1200
      TabIndex        =   8
      Top             =   1320
      Width           =   480
   End
   Begin VB.CommandButton Number 
      Caption         =   "9"
      Height          =   480
      Index           =   9
      Left            =   1800
      TabIndex        =   9
      Top             =   1320
      Width           =   480
   End
   Begin VB.CommandButton Cancel 
      Caption         =   "C"
      Height          =   480
      Left            =   2520
      TabIndex        =   10
      Top             =   1320
      Width           =   480
   End
   Begin VB.CommandButton CancelEntry 
      Caption         =   "CE"
      Height          =   480
      Left            =   3120
      TabIndex        =   11
      Top             =   1320
      Width           =   480
   End
   Begin VB.CommandButton Number 
      Caption         =   "4"
      Height          =   480
      Index           =   4
      Left            =   600
      TabIndex        =   4
      Top             =   1920
      Width           =   480
   End
   Begin VB.CommandButton Number 
      Caption         =   "5"
      Height          =   480
      Index           =   5
      Left            =   1200
      TabIndex        =   5
      Top             =   1920
      Width           =   480
   End
   Begin VB.CommandButton Number 
      Caption         =   "6"
      Height          =   480
      Index           =   6
      Left            =   1800
      TabIndex        =   6
      Top             =   1920
      Width           =   480
   End
   Begin VB.CommandButton Operator 
      Caption         =   "+"
      Height          =   480
      Index           =   1
      Left            =   2520
      TabIndex        =   12
      Top             =   1920
      Width           =   480
   End
   Begin VB.CommandButton Operator 
      Caption         =   "-"
      Height          =   480
      Index           =   3
      Left            =   3120
      TabIndex        =   13
      Top             =   1920
      Width           =   480
   End
   Begin VB.CommandButton Number 
      Caption         =   "1"
      Height          =   480
      Index           =   1
      Left            =   600
      TabIndex        =   1
      Top             =   2520
      Width           =   480
   End
   Begin VB.CommandButton Number 
      Caption         =   "2"
      Height          =   480
      Index           =   2
      Left            =   1200
      TabIndex        =   2
      Top             =   2520
      Width           =   480
   End
   Begin VB.CommandButton Number 
      Caption         =   "3"
      Height          =   480
      Index           =   3
      Left            =   1800
      TabIndex        =   3
      Top             =   2520
      Width           =   480
   End
   Begin VB.CommandButton Operator 
      Caption         =   "X"
      Height          =   480
      Index           =   2
      Left            =   2520
      TabIndex        =   14
      Top             =   2520
      Width           =   480
   End
   Begin VB.CommandButton Operator 
      Caption         =   "/"
      Height          =   480
      Index           =   0
      Left            =   3120
      TabIndex        =   15
      Top             =   2520
      Width           =   480
   End
   Begin VB.CommandButton Number 
      Caption         =   "0"
      Height          =   480
      Index           =   0
      Left            =   600
      TabIndex        =   0
      Top             =   3120
      Width           =   1080
   End
   Begin VB.CommandButton Decimal 
      Caption         =   "."
      Height          =   480
      Left            =   1800
      TabIndex        =   18
      Top             =   3120
      Width           =   480
   End
   Begin VB.CommandButton Operator 
      BackColor       =   &H000000FF&
      Caption         =   "="
      Height          =   480
      Index           =   4
      Left            =   3120
      MaskColor       =   &H000000FF&
      Style           =   1  'Graphical
      TabIndex        =   16
      Top             =   3120
      Width           =   1440
   End
   Begin VB.CommandButton Percent 
      Caption         =   "%"
      Height          =   480
      Left            =   2520
      TabIndex        =   17
      Top             =   3120
      Width           =   480
   End
   Begin VB.Label Readout 
      Alignment       =   1  'Right Justify
      BackColor       =   &H00C0FFFF&
      BorderStyle     =   1  'Fixed Single
      Caption         =   "0."
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   12
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00000000&
      Height          =   492
      Left            =   720
      TabIndex        =   19
      Top             =   360
      Width           =   3000
   End
End
Attribute VB_Name = "Calculator"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'CODE Manger By BcodeXRose
' ------------------------------------------------------------------------
'               版权所有 (C) 1994 Microsoft Corporation
'
' 您可以免费以任何方式使用、修改、复制并分发您认为有用的
' 示例应用程序文件 (或任何修改过的版本)。Microsoft 对任何
' 示例应用程序文件不做任何保证,不负任何责任和义务。
' ------------------------------------------------------------------------
Option Explicit
Dim Op1, Op2                ' 预先输入操作数。
Dim DecimalFlag, Index As Integer ' 小数点存在吗?
Dim NumOps As Integer       ' 操作数个数。
Dim LastInput               ' 指示上一次按键事件的类型。
Dim OpFlag                  ' 指示未完成的操作。
Dim TempReadout
Dim MR As Long


' C (取消) 按钮的 Click 事件过程
' 重新设置显示并初始化变量。
'
' 过程名称:Cancel_Click
' 参数: 无
'
Private Sub Cancel_Click()
    Readout = Format(0, "0.")
    Op1 = 0
    Op2 = 0
    Form_Load
End Sub
    
    ' CE (取消输入) 按钮的 Click 事件过程。
'
' 过程名称:CancelEntry_Click
' 参数: 无
'
Private Sub CancelEntry_Click()

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -