📄 form1.frm
字号:
VERSION 5.00
Object = "{27395F88-0C0C-101B-A3C9-08002B2F49FB}#1.1#0"; "PICCLP32.OCX"
Begin VB.Form Form1
BackColor = &H80000000&
Caption = "地球仪"
ClientHeight = 3990
ClientLeft = 60
ClientTop = 345
ClientWidth = 6075
FillColor = &H00FF0000&
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FF0000&
Icon = "Form1.frx":0000
LinkTopic = "Form1"
ScaleHeight = 3990
ScaleWidth = 6075
StartUpPosition = 2 '屏幕中心
Begin PicClip.PictureClip PictureClip1
Left = 2400
Top = 120
_ExtentX = 6615
_ExtentY = 6879
_Version = 393216
Rows = 8
Cols = 8
Picture = "Form1.frx":000C
End
Begin VB.CommandButton Command2
Caption = "结束"
Height = 375
Left = 720
TabIndex = 1
Top = 720
Width = 975
End
Begin VB.Timer Timer1
Enabled = 0 'False
Interval = 100
Left = 1920
Top = 120
End
Begin VB.CommandButton Command1
Caption = "开始"
Height = 375
Left = 720
TabIndex = 0
Top = 120
Width = 975
End
Begin VB.Image Image1
Height = 855
Left = 4080
Top = 120
Visible = 0 'False
Width = 1920
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'CODE Manger By BcodeXRose
Dim scx As Single, scy As Single, sdx As Single, sdy As Single
'##################################################################
'## 过程名称:Command1_Click
'## 参数: 无
'##################################################################
Private Sub Command1_Click()
Image1.Visible = True
Timer1.Enabled = True
End Sub
'##################################################################
'## 过程名称:Form_Load
'## 参数: 无
'##################################################################
Private Sub Form_Load()
scx = 50: scy = 75: sdx = 50: sdy = 50
End Sub
'##################################################################
'## 过程名称:Timer1_Timer
'## 参数: 无
'##################################################################
Private Sub Timer1_Timer()
Static i As Integer
Image1.Picture = PictureClip1.GraphicCell(i)
i = i + 1: If i > 15 Then i = 0
Image1.Move Image1.Left + scx, Image1.Top + scy
If Image1.Left + Image1.Width >= ScaleWidth + ScaleLeft Then scx = -50
If Image1.Left <= 0 Then scx = 50
If Image1.Top + Image1.Height >= ScaleHeight + ScaleTop Then scy = -75
If Image1.Top <= 0 Then scy = 75
Image1.Height = Image1.Height + sdy
Image1.Width = Image1.Width = Image1.Width + sdx
If Image1.Height >= 1000 Then sdy = -50
If Image1.Width >= 1000 Then sdx = -50
If Image1.Height <= 200 Then sdy = 50
If Image1.Width <= 200 Then sdx = 50
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -