📄 frmwelcom.frm
字号:
VERSION 5.00
Begin VB.Form frmWelcom
Caption = "Form1"
ClientHeight = 4704
ClientLeft = 48
ClientTop = 300
ClientWidth = 6168
LinkTopic = "Form1"
ScaleHeight = 4704
ScaleWidth = 6168
StartUpPosition = 3 '窗口缺省
Begin VB.PictureBox Picture1
Height = 852
Left = 360
ScaleHeight = 804
ScaleWidth = 804
TabIndex = 4
Top = 480
Width = 852
End
Begin VB.CommandButton cmdExit
Caption = "#"
Height = 372
Left = 3960
TabIndex = 1
Top = 3840
Width = 972
End
Begin VB.CommandButton cmdOK
Caption = "#"
Height = 372
Left = 1560
TabIndex = 0
Top = 3840
Width = 972
End
Begin VB.Label Label2
Caption = "*"
Height = 372
Left = 1800
TabIndex = 3
Top = 840
Width = 3252
End
Begin VB.Label Label1
Caption = "*"
Height = 372
Left = 960
TabIndex = 2
Top = 1920
Width = 3732
End
End
Attribute VB_Name = "frmWelcom"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Form_Load()
Dim intWidth As Integer
SetFormFont Me
cmdExit.Caption = ResolveResString(resBTNEXIT)
cmdOK.Caption = ResolveResString(resBTNOK)
lblRunning.Caption = ResolveResString(resLBLRUNNING)
Caption = gstrTitle
intWidth = TextWidth(Caption) + cmdOK.Width * 2
If intWidth > Width Then
Width = intWidth
End If
lblWelcome.Caption = ResolveResString(resWELCOME, "|1", gstrAppName)
shpWelcome.Move (ScaleWidth - shpWelcome.Width) \ 2
cmdOK.Left = (ScaleWidth - cmdOK.Width * 1.5 - cmdExit.Width) \ 2
cmdExit.Left = cmdOK.Left + cmdOK.Width * 1.5
EtchedLine Me, shpWelcome.Left - 50, cmdOK.Top - cmdOK.Height \ 2, shpWelcome.Width + 100
CenterForm Me
End Sub
Private Sub cmdExit_Click()
ExitSetup Me, gintRET_EXIT
End Sub
Private Sub cmdOK_Click()
Unload Me
End Sub
Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
If UnloadMode <> 1 Then
ExitSetup Me, gintRET_EXIT
Cancel = 1
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -