frmabout.frm
来自「非常漂亮的VB控件」· FRM 代码 · 共 228 行
FRM
228 行
VERSION 5.00
Begin VB.Form frmAbout
BorderStyle = 0 'None
Caption = "Form1"
ClientHeight = 2400
ClientLeft = 0
ClientTop = 0
ClientWidth = 3510
LinkTopic = "Form1"
ScaleHeight = 2400
ScaleWidth = 3510
ShowInTaskbar = 0 'False
StartUpPosition = 1 'CenterOwner
Begin VB.Timer tmrUnload
Interval = 12000
Left = 2505
Top = 45
End
Begin VB.Line Line1
X1 = 735
X2 = 2115
Y1 = 2385
Y2 = 2385
End
Begin VB.Label Label1
Alignment = 2 'Center
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "REGISTERED VERSION"
BeginProperty Font
Name = "Arial"
Size = 9.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 225
Index = 2
Left = 645
TabIndex = 2
Top = 615
Width = 2205
End
Begin VB.Label Label1
Alignment = 2 'Center
BackStyle = 0 'Transparent
Caption = "OK"
BeginProperty Font
Name = "Arial"
Size = 9.75
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 270
Index = 1
Left = 1365
TabIndex = 1
Top = 1680
Width = 720
End
Begin VB.Label Label1
Alignment = 2 'Center
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "Gradient Balloon Tip"
BeginProperty Font
Name = "Arial"
Size = 9.75
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 225
Index = 0
Left = 750
TabIndex = 0
Top = 315
Width = 1965
End
Begin VB.Shape Shape1
BackStyle = 1 'Opaque
Height = 330
Left = 1365
Shape = 4 'Rounded Rectangle
Top = 1620
Width = 735
End
Begin VB.Shape Shape2
BackColor = &H00808080&
BackStyle = 1 'Opaque
BorderStyle = 0 'Transparent
Height = 330
Left = 1410
Shape = 4 'Rounded Rectangle
Top = 1665
Width = 735
End
End
Attribute VB_Name = "frmAbout"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Form_Load()
Dim myRgn As Long, myRgn2 As Long, myPrn As Long, myPrnRect As RECT
On Error Resume Next
Label1(2) = "REGISTERED VERSION" & vbCrLf & "Made by. Batavian" & vbCrLf & "Jakarta - Indonesia" & vbCrLf & "batavian_forever@hotmail.com"
Me.ScaleMode = vbPixels
myRgn = CreateRoundRectRgn(0, 0, Me.ScaleWidth - 10, Me.ScaleHeight - 10, 10, 10)
myRgn2 = CreateRoundRectRgn(Me.ScaleWidth * 0.08, Me.ScaleHeight * 0.1, Me.ScaleWidth * 0.92, Me.ScaleHeight * 0.9, 12, 12)
CombineRgn myRgn, myRgn2, myRgn, 3
myRgn = CreateRoundRectRgn(10, 10, Me.ScaleWidth - 10, Me.ScaleHeight - 10, 10, 10)
CombineRgn myRgn2, myRgn2, myRgn, 3
myRgn = CreateRoundRectRgn(0, 0, Me.ScaleWidth, Me.ScaleHeight, 15, 15)
CombineRgn myRgn, myRgn2, myRgn, 3
SetWindowRgn Me.hWnd, myRgn, False
DeleteObject myRgn
DeleteObject myRgn2
myRect.Left = Me.Left / 15: myRect.Right = (Me.Left + Me.Width) / 15
myRect.Top = Me.Top / 15: myRect.Bottom = (Me.Top + Me.Height) / 15
SetWindowPos Me.hWnd, -1, 0, 0, 0, 0, &H10 Or &H2 Or &H1 Or &H40 Or &H200
On Error GoTo 0
End Sub
Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Label1(1).ForeColor = vbRed Then
Label1(1).ForeColor = vbBlack
Shape1.BorderColor = vbBlack
Shape1.BackColor = vbWhite
End If
End Sub
Private Sub Form_Paint()
Dim myRgn As Long, myRgn2 As Long, theBrush As Long
Dim vert(2) As TRIVERTEX
Dim gRect As GRADIENT_RECT
On Error Resume Next
With vert(0)
.X = 0
.Y = 0
.Red = -255
.Green = 55
.Blue = 55
.Alpha = 0&
End With
With vert(1)
.X = Me.ScaleWidth
.Y = Me.ScaleHeight / 2
.Red = -255
.Green = -255
.Blue = 0&
.Alpha = 0&
End With
With vert(2)
.X = 0
.Y = Me.ScaleHeight
.Red = 0&
.Green = -255
.Blue = 0&
.Alpha = 0&
End With
gRect.UpperLeft = 0
gRect.LowerRight = 1
GradientFillRect Me.hDC, vert(0), 2, gRect, 1, GRADIENT_FILL_RECT_V
GradientFillRect Me.hDC, vert(1), 2, gRect, 1, GRADIENT_FILL_RECT_V
myRgn = CreateRoundRectRgn(0, 0, Me.ScaleWidth - 10, Me.ScaleHeight - 10, 10, 10)
myRgn2 = CreateRoundRectRgn(Me.ScaleWidth * 0.08, Me.ScaleHeight * 0.1, Me.ScaleWidth * 0.92, Me.ScaleHeight * 0.9, 12, 12)
CombineRgn myRgn, myRgn2, myRgn, 3
myRgn = CreateRoundRectRgn(10, 10, Me.ScaleWidth - 10, Me.ScaleHeight - 10, 10, 10)
CombineRgn myRgn2, myRgn2, myRgn, 3
myRgn = CreateRoundRectRgn(0, 0, Me.ScaleWidth, Me.ScaleHeight, 15, 15)
CombineRgn myRgn, myRgn2, myRgn, 3
theBrush = CreateSolidBrush(vbBlack)
FrameRgn Me.hDC, myRgn, theBrush, 1, 1
DeleteObject myRgn
DeleteObject myRgn2
DeleteObject theBrush
On Error GoTo 0
End Sub
Private Sub Label1_Click(Index As Integer)
If Index = 1 Then
Unload Me
End If
End Sub
Private Sub Label1_MouseDown(Index As Integer, Button As Integer, Shift As Integer, X As Single, Y As Single)
If Index = 1 Then Shape2.Visible = False
End Sub
Private Sub Label1_MouseMove(Index As Integer, Button As Integer, Shift As Integer, X As Single, Y As Single)
If Index = 1 Then
Label1(Index).ForeColor = vbRed
Shape1.BorderColor = vbRed
Shape1.BackColor = vbYellow
End If
End Sub
Private Sub Label1_MouseUp(Index As Integer, Button As Integer, Shift As Integer, X As Single, Y As Single)
If Index = 1 Then Shape2.Visible = True
End Sub
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?