📄 calculator.frm
字号:
VERSION 5.00
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "comdlg32.ocx"
Begin VB.Form Calculator
Caption = "US Calculator "
ClientHeight = 3255
ClientLeft = 165
ClientTop = 555
ClientWidth = 3855
HasDC = 0 'False
Icon = "Calculator.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
NegotiateMenus = 0 'False
ScaleHeight = 217
ScaleMode = 3 'Pixel
ScaleWidth = 257
StartUpPosition = 2 'CenterScreen
Begin Project1.XPButton XPButton1cmdzero
Height = 405
Left = 840
TabIndex = 30
TabStop = 0 'False
Top = 2640
Width = 510
_ExtentX = 900
_ExtentY = 714
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Caption = "0"
ForeColor = 16711680
ForeHover = 0
End
Begin VB.TextBox lbl_app
Alignment = 2 'Center
BackColor = &H8000000F&
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 240
Locked = -1 'True
MousePointer = 1 'Arrow
TabIndex = 29
TabStop = 0 'False
Top = 600
Width = 450
End
Begin VB.TextBox tmp
Enabled = 0 'False
Height = 345
Left = 240
Locked = -1 'True
TabIndex = 28
TabStop = 0 'False
ToolTipText = "Memory stores here"
Top = 120
Width = 495
End
Begin VB.TextBox display
Alignment = 1 'Right Justify
CausesValidation= 0 'False
BeginProperty DataFormat
Type = 0
Format = "HH:mm"
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2057
SubFormatType = 0
EndProperty
ForeColor = &H00404040&
Height = 345
Left = 240
Locked = -1 'True
MaxLength = 32
TabIndex = 27
TabStop = 0 'False
Text = "0"
ToolTipText = "Screen"
Top = 120
Width = 3450
End
Begin Project1.XPButton cmdsqrt
Height = 405
Left = 3135
TabIndex = 26
TabStop = 0 'False
Top = 1200
Width = 510
_extentx = 900
_extenty = 714
font = "Calculator.frx":5C12
caption = "Sqrt"
forecolor = 16711680
forehover = 0
End
Begin Project1.XPButton cmdpercentage
Height = 405
Left = 3135
TabIndex = 25
TabStop = 0 'False
Top = 1680
Width = 510
_extentx = 900
_extenty = 714
font = "Calculator.frx":5C36
caption = "%"
forecolor = 16711680
forehover = 0
End
Begin Project1.XPButton cmdreciprocal
Height = 405
Left = 3135
TabIndex = 24
TabStop = 0 'False
Top = 2160
Width = 510
_extentx = 900
_extenty = 714
font = "Calculator.frx":5C5A
caption = "1/x"
forecolor = 16711680
forehover = 0
End
Begin Project1.XPButton cmdequal
Height = 405
Left = 3135
TabIndex = 23
TabStop = 0 'False
Top = 2640
Width = 510
_extentx = 900
_extenty = 714
font = "Calculator.frx":5C7E
caption = "="
forecolor = 255
forehover = 192
End
Begin Project1.XPButton cmdplusminus
Height = 405
Left = 1440
TabIndex = 22
TabStop = 0 'False
Top = 2640
Width = 510
_extentx = 900
_extenty = 714
font = "Calculator.frx":5CA2
caption = "+/-"
forecolor = 16711680
forehover = 0
End
Begin Project1.XPButton cmdpoint
Height = 405
Left = 1995
TabIndex = 21
TabStop = 0 'False
Top = 2640
Width = 510
_extentx = 900
_extenty = 714
font = "Calculator.frx":5CC6
caption = "."
forecolor = 16711680
forehover = 0
End
Begin Project1.XPButton cmddivide
Height = 405
Left = 2565
TabIndex = 17
TabStop = 0 'False
Top = 1200
Width = 510
_extentx = 900
_extenty = 714
font = "Calculator.frx":5CEA
caption = "/"
forecolor = 255
forehover = 192
End
Begin Project1.XPButton cmdclear
Height = 405
Left = 2760
TabIndex = 16
TabStop = 0 'False
Top = 600
Width = 870
_extentx = 1535
_extenty = 714
font = "Calculator.frx":5D0E
caption = "C"
forecolor = 255
forehover = 192
End
Begin Project1.XPButton cmdempty
Height = 405
Left = 1835
TabIndex = 15
TabStop = 0 'False
Top = 600
Width = 885
_extentx = 1561
_extenty = 714
font = "Calculator.frx":5D32
caption = "CE"
forecolor = 255
forehover = 192
End
Begin Project1.XPButton cmdbackspace
Height = 405
Left = 840
TabIndex = 14
TabStop = 0 'False
Top = 600
Width = 945
_extentx = 1667
_extenty = 714
font = "Calculator.frx":5D56
caption = "Backspace"
forecolor = 255
forehover = 192
End
Begin Project1.XPButton cmdmemplus
Height = 405
Left = 180
TabIndex = 13
TabStop = 0 'False
Top = 2640
Width = 510
_extentx = 900
_extenty = 714
font = "Calculator.frx":5D7A
caption = "M+"
forecolor = 255
forehover = 192
End
Begin Project1.XPButton cmdms
Height = 405
Left = 180
TabIndex = 12
TabStop = 0 'False
Top = 2160
Width = 510
_extentx = 900
_extenty = 714
font = "Calculator.frx":5D9E
caption = "MS"
forecolor = 255
forehover = 192
End
Begin Project1.XPButton cmdmr
Height = 405
Left = 180
TabIndex = 11
TabStop = 0 'False
Top = 1680
Width = 510
_extentx = 900
_extenty = 714
font = "Calculator.frx":5DC2
caption = "MR"
forecolor = 255
forehover = 192
End
Begin Project1.XPButton cmdmc
Height = 405
Left = 180
TabIndex = 10
TabStop = 0 'False
Top = 1200
Width = 510
_extentx = 900
_extenty = 714
font = "Calculator.frx":5DE6
caption = "MC"
forecolor = 255
forehover = 192
End
Begin Project1.XPButton cmd_digits
Height = 405
Index = 1
Left = 840
TabIndex = 1
TabStop = 0 'False
Top = 2160
Width = 510
_extentx = 900
_extenty = 714
font = "Calculator.frx":5E0A
caption = "1"
forecolor = 16711680
forehover = 16711680
End
Begin Project1.XPButton cmd_digits
Height = 405
Index = 2
Left = 1425
TabIndex = 2
TabStop = 0 'False
Top = 2160
Width = 510
_extentx = 900
_extenty = 714
font = "Calculator.frx":5E2E
caption = "2"
forecolor = 16711680
forehover = 16711680
End
Begin Project1.XPButton cmd_digits
Height = 405
Index = 3
Left = 1995
TabIndex = 3
TabStop = 0 'False
Top = 2160
Width = 510
_extentx = 900
_extenty = 714
font = "Calculator.frx":5E52
caption = "3"
forecolor = 16711680
forehover = 16711680
End
Begin Project1.XPButton cmd_digits
Height = 405
Index = 4
Left = 840
TabIndex = 4
TabStop = 0 'False
Top = 1680
Width = 510
_extentx = 900
_extenty = 714
font = "Calculator.frx":5E76
caption = "4"
forecolor = 16711680
forehover = 16711680
End
Begin Project1.XPButton cmd_digits
Height = 405
Index = 5
Left = 1425
TabIndex = 5
TabStop = 0 'False
Top = 1680
Width = 510
_extentx = 900
_extenty = 714
font = "Calculator.frx":5E9A
caption = "5"
forecolor = 16711680
forehover = 16711680
End
Begin Project1.XPButton cmd_digits
Height = 405
Index = 6
Left = 1995
TabIndex = 6
TabStop = 0 'False
Top = 1680
Width = 510
_extentx = 900
_extenty = 714
font = "Calculator.frx":5EBE
caption = "6"
forecolor = 16711680
forehover = 16711680
End
Begin Project1.XPButton cmd_digits
Height = 405
Index = 7
Left = 840
TabIndex = 7
TabStop = 0 'False
Top = 1200
Width = 510
_extentx = 900
_extenty = 714
font = "Calculator.frx":5EE2
caption = "7"
forecolor = 16711680
forehover = 16711680
End
Begin Project1.XPButton cmd_digits
Height = 405
Index = 8
Left = 1425
TabIndex = 8
TabStop = 0 'False
Top = 1200
Width = 510
_extentx = 900
_extenty = 714
font = "Calculator.frx":5F06
caption = "8"
forecolor = 16711680
forehover = 16711680
End
Begin Project1.XPButton cmd_digits
Height = 405
Index = 9
Left = 1995
TabIndex = 9
TabStop = 0 'False
Top = 1200
Width = 510
_extentx = 900
_extenty = 714
font = "Calculator.frx":5F2A
caption = "9"
forecolor = 16711680
forehover = 16711680
End
Begin Project1.XPButton cmdmultiply
Height = 405
Left = 2565
TabIndex = 18
TabStop = 0 'False
Top = 1680
Width = 510
_extentx = 900
_extenty = 714
font = "Calculator.frx":5F4E
caption = "x"
forecolor = 255
forehover = 192
End
Begin Project1.XPButton cmdminus
Height = 405
Left = 2565
TabIndex = 19
TabStop = 0 'False
Top = 2160
Width = 510
_extentx = 900
_extenty = 714
font = "Calculator.frx":5F72
caption = "-"
forecolor = 255
forehover = 192
End
Begin Project1.XPButton cmdplus
Height = 405
Left = 2565
TabIndex = 20
TabStop = 0 'False
Top = 2640
Width = 510
_extentx = 900
_extenty = 714
font = "Calculator.frx":5F96
caption = "+"
forecolor = 255
forehover = 192
End
Begin VB.Timer Timer1
Interval = 500
Left = 1440
Top = 1200
End
Begin MSComDlg.CommonDialog cd1
Left = 1200
Top = 600
_ExtentX = 847
_ExtentY = 847
_Version = 393216
End
Begin VB.CommandButton Command1
Caption = "Form Set focus"
Height = 255
Left = 1320
TabIndex = 0
Top = 120
Width = 1215
End
Begin VB.Image Image1
Height = 3255
Left = 0
Stretch = -1 'True
Top = 0
Width = 3855
End
Begin VB.Menu Edit
Caption = "Edit"
Begin VB.Menu Copy
Caption = "Copy"
Shortcut = ^C
End
Begin VB.Menu Paste
Caption = "Paste"
Shortcut = ^V
End
Begin VB.Menu sss
Caption = "-"
End
Begin VB.Menu Exit
Caption = "Exit"
Shortcut = ^E
End
End
Begin VB.Menu View
Caption = "View"
Begin VB.Menu standard
Caption = "Standard"
Shortcut = ^S
End
Begin VB.Menu Scientific
Caption = "Scientific"
Enabled = 0 'False
End
Begin VB.Menu separator
Caption = "-"
End
Begin VB.Menu grouping
Caption = "Digit grouping"
Enabled = 0 'False
End
Begin VB.Menu memshoworhide
Caption = "Memory"
End
Begin VB.Menu look
Caption = "-"
End
Begin VB.Menu backg
Caption = "Insert picture"
End
Begin VB.Menu Digital
Caption = "Digital Look"
Shortcut = ^L
End
Begin VB.Menu Default
Caption = "Default Look"
Shortcut = ^D
End
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -