📄 frmsplash.frm
字号:
VERSION 5.00
Begin VB.Form frmSplash
Appearance = 0 'Flat
BorderStyle = 0 'None
ClientHeight = 4275
ClientLeft = 210
ClientTop = 1365
ClientWidth = 7410
ClipControls = 0 'False
ControlBox = 0 'False
Icon = "frmSplash.frx":0000
KeyPreview = -1 'True
LinkTopic = "Form2"
LockControls = -1 'True
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 4275
ScaleWidth = 7410
ShowInTaskbar = 0 'False
StartUpPosition = 2 'CenterScreen
Begin VB.TextBox txtStatus
Appearance = 0 'Flat
BackColor = &H00000000&
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H0000FF00&
Height = 1455
Left = 2700
MultiLine = -1 'True
TabIndex = 7
Top = 2160
Width = 4035
End
Begin VB.Timer tmrAutoUnload
Enabled = 0 'False
Interval = 500
Left = 5880
Top = 4200
End
Begin VB.Frame Frame1
Height = 4050
Left = 7320
TabIndex = 0
Top = 240
Visible = 0 'False
Width = 7080
Begin VB.Image imgLogo
Height = 1920
Left = 240
Picture = "frmSplash.frx":000C
Stretch = -1 'True
Top = 1680
Width = 1695
End
Begin VB.Label lblCopyright
Caption = "Copyright"
BeginProperty Font
Name = "Arial"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 4560
TabIndex = 4
Top = 3060
Visible = 0 'False
Width = 2415
End
Begin VB.Label lblCompany
Caption = "Company"
BeginProperty Font
Name = "Arial"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 4560
TabIndex = 3
Top = 3270
Visible = 0 'False
Width = 2415
End
Begin VB.Label lblWarning
Caption = "Warning"
BeginProperty Font
Name = "Arial"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 195
Left = 150
TabIndex = 2
Top = 3660
Visible = 0 'False
Width = 6855
End
Begin VB.Label lblPlatform
Alignment = 2 'Center
AutoSize = -1 'True
Caption = "for Win 9x/ Me and Win NT, 2000"
BeginProperty Font
Name = "Arial"
Size = 12
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 285
Left = 1320
TabIndex = 5
Top = 840
Width = 4815
End
Begin VB.Label lblProductName
AutoSize = -1 'True
Caption = "AD9858 Evaluation Software"
BeginProperty Font
Name = "Arial"
Size = 18
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 435
Left = 1320
TabIndex = 6
Top = 360
Width = 4845
End
Begin VB.Label lblLicenseTo
Alignment = 1 'Right Justify
Caption = "LicenseTo"
BeginProperty Font
Name = "Arial"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 120
TabIndex = 1
Top = 240
Visible = 0 'False
Width = 6855
End
End
Begin VB.Label lblVersion
Alignment = 2 'Center
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "Version"
BeginProperty Font
Name = "Arial"
Size = 12
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H0000FF00&
Height = 285
Left = 1200
TabIndex = 9
Top = 1320
Width = 4965
End
Begin VB.Label lblStatus
BackStyle = 0 'Transparent
Caption = "Status:"
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H0000FF00&
Height = 255
Left = 2640
TabIndex = 8
Top = 1860
Width = 735
End
Begin VB.Image imgSkin
Height = 4275
Left = 0
Picture = "frmSplash.frx":044E
Stretch = -1 'True
Top = 0
Width = 7410
End
End
Attribute VB_Name = "frmSplash"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Dim MeHandle As Long 'Handle to this form
Private Sub Form_Activate()
'Get a handle to the foreground window which should be this one
' MeHandle = GetForegroundWindow()
End Sub
Private Sub Form_Click()
Unload_Nice
End Sub
Private Sub Form_KeyPress(KeyAscii As Integer)
Unload_Nice
End Sub
Private Sub Form_Load()
lblVersion.Caption = "Version " & App.Major & "." & App.Minor & "." & App.Revision
lblProductName.Caption = App.Title
' If imgSkin.Width <> Me.Width Or imgSkin.Height <> Me.Height Then
imgSkin.Move 0, 0, Me.Width, Me.Height
' End If
'Put this code in MouseMove event. In this example, I put a CommandButton on a
'form with the name Command1
'Static CtrMov As Boolean
'With cmdOperationalMode(Index) 'Change this 'Command1' to your control name
' If (X < 0) Or (Y < 0) Or (X > .Width) Or (Y > .Height) Then
' ReleaseCapture
' CtrMov = False
'
' 'Put here your code to LostMouseFocus
' 'For example:
' 'Me.Print "LostMouseFocus"
' cmdOperationalMode(Index).BackColor = &H8000000F
'
' Else
' SetCapture Me.hWnd
' If CtrMov = False Then
' CtrMov = True
'
' 'Put here your code to GetMouseFocus
' 'For example:
' 'Me.Print "GetMouseFocus"
' cmdOperationalMode(Index).BackColor = &HFF00&
'
' End If
' End If
'End With
End Sub
Private Sub Form_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
'Unload the form after releaseing the capture
Unload_Nice
End Sub
Private Sub Frame1_Click()
' Unload_Nice
End Sub
Public Sub Unload_Nice()
MakeTopMost Me, False
'Me.Hide
Unload Me
End Sub
'Adds a line to the status window
Public Sub AddStatLine(ByVal strLine As String)
With txtStatus
If .Text = "" Then
.Text = strLine
Else
.SelStart = Len(.Text)
.SelText = vbNewLine & strLine
End If
'Refresh the textbox
.Refresh
End With
End Sub
'Enables the auto unload feature
Public Sub AutoUnloadEnable()
tmrAutoUnload.Enabled = True
End Sub
'Clears all text in the status text box
Public Sub ClearStatus()
'txtStatus.Text = ""
' txtStatus.Refresh
With txtStatus
.SelStart = Len(.Text)
.SelText = vbNewLine & vbNewLine & vbNewLine & vbNewLine & vbNewLine & vbNewLine
End With
End Sub
'Sets the for ground color of the text in the status text box
Public Sub SetStatusTextColor(ByVal fColor As Long)
With txtStatus
.ForeColor = fColor
End With
End Sub
Private Sub imgSkin_Click()
Form_Click
End Sub
Private Sub tmrAutoUnload_Timer()
Dim FgWnd As Long
Dim DebugString As String
Dim cntr As Integer
' FgWnd = GetForegroundWindow()
' If the splash window isn't in the foreground then unload it
' If MeHandle <> FgWnd And FgWnd <> Forms(0).hWnd Then
' Unload_Nice
' DebugString = "Window Handles"
' For cntr = 0 To Forms.Count - 1
' DebugString = DebugString & vbCrLf & Forms(cntr).Name & " = " & Forms(cntr).hWnd
' Next cntr
' DebugString = DebugString & vbCrLf & vbCrLf & "Window Activating = " & FgWnd
' MsgBox DebugString, vbOKOnly, "Debug"
' End If
' Unload_Nice
If Not Screen.ActiveForm Is Me Then
Unload_Nice
End If
'txtStatus.SetFocus
End Sub
Private Sub txtStatus_Change()
' Frame1_Click
End Sub
'Adds a line to the status window
Public Sub AddLine(Tbox As TextBox, ByVal strLine As String)
With Tbox
If .Text = "" Then
.Text = strLine
Else
.SelStart = Len(.Text)
.SelText = vbNewLine & strLine
End If
'Refresh the textbox
.Refresh
End With
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -