📄 frmcalculator.frm
字号:
VERSION 5.00
Begin VB.Form frmcalculator
BackColor = &H8000000E&
BorderStyle = 1 'Fixed Single
Caption = "计算器"
ClientHeight = 9390
ClientLeft = 45
ClientTop = 435
ClientWidth = 14430
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 9390
ScaleWidth = 14430
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command5
Caption = "结束四则运算"
Height = 495
Left = 7320
TabIndex = 46
Top = 3600
Width = 1215
End
Begin VB.CommandButton Command4
Caption = "四则运算"
Height = 495
Left = 7320
TabIndex = 45
Top = 3000
Width = 1215
End
Begin VB.CommandButton cmdnumber
Caption = "F"
Height = 495
Index = 15
Left = 3960
TabIndex = 43
Top = 3480
Width = 1215
End
Begin VB.CommandButton cmdnumber
Caption = "E"
Height = 495
Index = 14
Left = 2640
TabIndex = 42
Top = 3480
Width = 1215
End
Begin VB.CommandButton cmdnumber
Caption = "D"
Height = 495
Index = 13
Left = 1320
TabIndex = 41
Top = 3480
Width = 1215
End
Begin VB.CommandButton cmdnumber
Caption = "C"
Height = 495
Index = 12
Left = 0
TabIndex = 40
Top = 3480
Width = 1215
End
Begin VB.CommandButton cmdnumber
Caption = "B"
Height = 495
Index = 11
Left = 2640
TabIndex = 39
Top = 2880
Width = 1215
End
Begin VB.CommandButton cmdnumber
Caption = "A"
Height = 495
Index = 10
Left = 1320
TabIndex = 38
Top = 2880
Width = 1215
End
Begin VB.OptionButton Option3
Caption = "十进制运算"
Height = 495
Left = 7320
TabIndex = 37
Top = 2280
Width = 1215
End
Begin VB.OptionButton Option2
Caption = "十六进制运算"
Height = 495
Left = 7320
TabIndex = 36
Top = 1440
Width = 1215
End
Begin VB.OptionButton Option1
Caption = "二进制运算"
Height = 495
Left = 7320
TabIndex = 35
Top = 600
Width = 1215
End
Begin VB.TextBox Text6
Height = 495
Left = 2880
TabIndex = 34
Top = 6600
Width = 1215
End
Begin VB.TextBox Text5
Height = 495
Left = 2880
TabIndex = 33
Top = 8160
Width = 1215
End
Begin VB.CommandButton Command3
Caption = "结果"
Height = 495
Left = 1560
TabIndex = 32
Top = 8160
Width = 1215
End
Begin VB.CommandButton Command2
Caption = "结果"
Height = 495
Left = 1560
TabIndex = 31
Top = 6600
Width = 1215
End
Begin VB.CommandButton Command1
Caption = "结果"
Height = 495
Left = 1560
TabIndex = 30
Top = 5160
Width = 1215
End
Begin VB.ComboBox 按位逻辑位运算
Height = 300
Left = 2880
TabIndex = 29
Text = "Combo3"
Top = 7440
Width = 1215
End
Begin VB.ComboBox 进制转换
Height = 300
Left = 4200
TabIndex = 28
Text = "Combo2"
Top = 6000
Width = 2175
End
Begin VB.ComboBox 移位
Height = 300
Left = 4200
TabIndex = 27
Text = "Combo1"
Top = 4560
Width = 1215
End
Begin VB.TextBox Text4
Height = 495
Left = 4320
TabIndex = 26
Top = 7320
Width = 1215
End
Begin VB.TextBox Text3
Height = 495
Left = 1560
TabIndex = 25
Top = 7440
Width = 1215
End
Begin VB.TextBox Text2
Height = 495
Left = 1560
TabIndex = 22
Top = 5880
Width = 1215
End
Begin VB.TextBox Text1
Height = 495
Left = 1560
TabIndex = 21
Top = 4560
Width = 1215
End
Begin VB.CommandButton clear
Caption = "Clear"
Height = 495
Left = 5280
TabIndex = 19
Top = 3480
Width = 1215
End
Begin VB.TextBox txtdisplay
Alignment = 1 'Right Justify
BackColor = &H00E0E0E0&
BeginProperty Font
Name = "宋体"
Size = 14.25
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 0
Locked = -1 'True
MultiLine = -1 'True
TabIndex = 18
Top = 480
Width = 6255
End
Begin VB.CommandButton cmdback
Caption = "-->"
Height = 495
Left = 5280
TabIndex = 17
Top = 2880
Width = 1215
End
Begin VB.CommandButton cmdequal
Caption = "="
Height = 495
Left = 5280
TabIndex = 16
Top = 2280
Width = 1215
End
Begin VB.CommandButton cmdpn
Caption = "+/-"
Height = 495
Left = 3960
TabIndex = 15
Top = 2280
Width = 1215
End
Begin VB.CommandButton cmdcalc
Caption = "/"
Height = 495
Index = 3
Left = 5280
TabIndex = 14
Top = 1680
Width = 1215
End
Begin VB.CommandButton cmdcalc
Caption = "*"
Height = 495
Index = 2
Left = 3960
TabIndex = 13
Top = 1680
Width = 1215
End
Begin VB.CommandButton cmdcalc
Caption = "-"
Height = 495
Index = 1
Left = 5280
TabIndex = 12
Top = 1080
Width = 1215
End
Begin VB.CommandButton cmdcalc
Caption = "+"
Height = 495
Index = 0
Left = 3960
TabIndex = 11
Top = 1080
Width = 1215
End
Begin VB.CommandButton cmdnumber
Caption = "."
Height = 495
Index = 16
Left = 3960
TabIndex = 10
Top = 2880
Width = 1215
End
Begin VB.CommandButton cmdnumber
Caption = "9"
Height = 495
Index = 9
Left = 0
TabIndex = 9
Top = 2880
Width = 1215
End
Begin VB.CommandButton cmdnumber
Caption = "8"
Height = 495
Index = 8
Left = 2640
TabIndex = 8
Top = 2280
Width = 1215
End
Begin VB.CommandButton cmdnumber
Caption = "7"
Height = 495
Index = 7
Left = 1320
TabIndex = 7
Top = 2280
Width = 1215
End
Begin VB.CommandButton cmdnumber
Caption = "6"
Height = 495
Index = 6
Left = 0
TabIndex = 6
Top = 2280
Width = 1215
End
Begin VB.CommandButton cmdnumber
Caption = "5"
Height = 495
Index = 5
Left = 2640
TabIndex = 5
Top = 1680
Width = 1215
End
Begin VB.CommandButton cmdnumber
Caption = "4"
Height = 495
Index = 4
Left = 1320
TabIndex = 4
Top = 1680
Width = 1215
End
Begin VB.CommandButton cmdnumber
Caption = "3"
Height = 495
Index = 3
Left = 0
TabIndex = 3
Top = 1680
Width = 1215
End
Begin VB.CommandButton cmdnumber
Caption = "2"
Height = 495
Index = 2
Left = 2640
TabIndex = 2
Top = 1080
Width = 1215
End
Begin VB.CommandButton cmdnumber
Caption = "1"
Height = 495
Index = 1
Left = 1320
TabIndex = 1
Top = 1080
Width = 1215
End
Begin VB.CommandButton cmdnumber
Caption = "0"
Height = 495
Index = 0
Left = 0
TabIndex = 0
Top = 1080
Width = 1215
End
Begin VB.Label Label4
Caption = "注意!此计算器只支持十进制的小数运算,不支持二进制和十六进制的小数运算。输入负数时,应最后添加负号。"
Height = 975
Left = 7200
TabIndex = 44
Top = 4320
Width = 1935
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -