📄 frmnumbertheoretic.frm
字号:
VERSION 5.00
Object = "{3B7C8863-D78F-101B-B9B5-04021C009402}#1.2#0"; "RICHTX32.OCX"
Begin VB.Form frmNumberTheoretic
Caption = "NumberTheoretic"
ClientHeight = 4470
ClientLeft = 60
ClientTop = 510
ClientWidth = 7170
BeginProperty Font
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
LinkTopic = "Form1"
LockControls = -1 'True
MaxButton = 0 'False
ScaleHeight = 298
ScaleMode = 3 'Pixel
ScaleWidth = 478
StartUpPosition = 2 'CenterScreen
Begin VB.OptionButton optRadix
Caption = "16 进制"
Height = 255
Index = 1
Left = 2160
TabIndex = 9
Top = 2160
Width = 1215
End
Begin VB.OptionButton optRadix
Caption = "10 进制"
Height = 255
Index = 0
Left = 840
TabIndex = 8
Top = 2160
Value = -1 'True
Width = 1215
End
Begin VB.CheckBox chkOption
Caption = "小写字符"
Enabled = 0 'False
Height = 255
Index = 4
Left = 5880
TabIndex = 7
Top = 1680
Width = 1095
End
Begin VB.CheckBox chkOption
Caption = "符号后加空格"
Height = 255
Index = 3
Left = 4320
TabIndex = 6
Top = 1680
Value = 1 'Checked
Width = 1575
End
Begin VB.CheckBox chkOption
Caption = "强制显示符号"
Height = 255
Index = 2
Left = 2760
TabIndex = 5
Top = 1680
Width = 1575
End
Begin VB.CheckBox chkOption
Caption = "用空格间隔"
Height = 255
Index = 1
Left = 1440
TabIndex = 4
Top = 1680
Value = 1 'Checked
Width = 1335
End
Begin VB.CheckBox chkOption
Caption = "分段显示"
Height = 255
Index = 0
Left = 240
TabIndex = 3
Top = 1680
Value = 1 'Checked
Width = 1095
End
Begin RichTextLib.RichTextBox rtbResult
Height = 1455
Left = 240
TabIndex = 2
Top = 120
Width = 6735
_ExtentX = 11880
_ExtentY = 2566
_Version = 393217
BorderStyle = 0
ReadOnly = -1 'True
ScrollBars = 2
MaxLength = 134217728
TextRTF = $"frmNumberTheoretic.frx":0000
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
End
Begin VB.Frame fraCalc
Caption = "大数计算"
Height = 1695
Left = 240
TabIndex = 1
Top = 2640
Width = 6735
Begin VB.OptionButton optCalc
Caption = "Lucas Number(n)"
Height = 300
Index = 6
Left = 2280
TabIndex = 21
Top = 1320
Width = 1695
End
Begin VB.OptionButton optCalc
Caption = "Fibonacci(n)"
Height = 300
Index = 5
Left = 2280
TabIndex = 20
Top = 960
Width = 1695
End
Begin VB.OptionButton optCalc
Caption = "排列:P(n, r)"
Height = 300
Index = 3
Left = 2280
TabIndex = 19
Top = 240
Width = 1695
End
Begin VB.OptionButton optCalc
Caption = "组合:C(n, r)"
Height = 300
Index = 4
Left = 2280
TabIndex = 18
Top = 600
Width = 1695
End
Begin VB.OptionButton optCalc
Caption = "素数阶乘(n)"
Height = 300
Index = 2
Left = 480
TabIndex = 17
Top = 1080
Width = 1455
End
Begin VB.CommandButton cmdCalc
Caption = "计 算 (&C)"
Default = -1 'True
Height = 375
Left = 4680
TabIndex = 0
Top = 1200
Width = 1575
End
Begin VB.TextBox txtN
Alignment = 2 'Center
Height = 285
Left = 5160
MaxLength = 10
TabIndex = 12
Text = "20000"
Top = 360
Width = 1095
End
Begin VB.TextBox txtR
Alignment = 2 'Center
Enabled = 0 'False
Height = 285
Left = 5160
MaxLength = 10
TabIndex = 13
Text = "10000"
Top = 720
Width = 1095
End
Begin VB.OptionButton optCalc
Caption = "双阶乘:n!!"
Height = 300
Index = 1
Left = 480
TabIndex = 11
Top = 720
Width = 1455
End
Begin VB.OptionButton optCalc
Caption = "阶乘:n!"
Height = 300
Index = 0
Left = 480
TabIndex = 10
Top = 360
Value = -1 'True
Width = 1455
End
Begin VB.Label labN
AutoSize = -1 'True
Caption = "n ="
Height = 180
Left = 4680
TabIndex = 15
Top = 390
Width = 270
End
Begin VB.Label labR
AutoSize = -1 'True
Caption = "r ="
Height = 180
Left = 4680
TabIndex = 16
Top = 750
Width = 270
End
End
Begin VB.Label labTimer
Caption = "计算耗时:00:00:00.000"
Height = 255
Left = 4200
TabIndex = 14
Top = 2160
Width = 2655
End
End
Attribute VB_Name = "frmNumberTheoretic"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Const HH_HOME = 10000
Const HH_MANUAL = 12000
Const HH_PERMUTATION = 12160
Const HH_COMBINATION = 12170
Const HH_FACTORIAL = 12180
Const HH_FIBONACCI = 12190
Const HH_LUCAS = 12200
Const HH_OUTPUT = 12360
Private m_nCalcIndex As Integer
Private m_bHex As Boolean
Private Sub chkOption_Click(Index As Integer)
If Index = 0 Then
If chkOption(0).Value = vbUnchecked Then
chkOption(1).Value = vbUnchecked
End If
ElseIf Index = 1 Then
If chkOption(1).Value > vbUnchecked Then
chkOption(0).Value = vbGrayed
End If
End If
End Sub
Private Sub Form_Load()
On Error Resume Next
'设置上下文帮助,按 F1 键将弹出对应帮助(请事先将 HugeCalc.chm 拷贝到 %WINDIR%\Help\ 目录中)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -