📄 例4.frm
字号:
VERSION 5.00
Begin VB.Form Frm7_5_2
BackColor = &H0080FF80&
Caption = "7-5-2:滚动条设计实例--滚动效果的实现"
ClientHeight = 4170
ClientLeft = 1155
ClientTop = 1875
ClientWidth = 7335
BeginProperty Font
Name = "宋体"
Size = 18
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
LinkTopic = "Form1"
ScaleHeight = 4170
ScaleWidth = 7335
Begin VB.PictureBox Picture1
Appearance = 0 'Flat
AutoSize = -1 'True
BackColor = &H80000005&
ForeColor = &H80000008&
Height = 510
Left = 1320
Picture = "例4.frx":0000
ScaleHeight = 480
ScaleWidth = 480
TabIndex = 1
Top = 1080
Width = 510
End
Begin VB.HScrollBar HScroll1
Height = 495
LargeChange = 500
Left = 1080
Max = 5500
Min = 1100
SmallChange = 100
TabIndex = 0
Top = 360
Value = 1100
Width = 5000
End
Begin VB.Label Label3
BackColor = &H00FFFF00&
BorderStyle = 1 'Fixed Single
Caption = "问题3:本例子考察哪些属性、方法、事件?"
Height = 495
Left = 240
TabIndex = 4
Top = 3360
Width = 6855
End
Begin VB.Label Label2
BackColor = &H0000FFFF&
BorderStyle = 1 'Fixed Single
Caption = "问题2:汽车与滚动条如何同步运动?"
Height = 495
Left = 720
TabIndex = 3
Top = 2640
Width = 5775
End
Begin VB.Label Label1
BackColor = &H000000FF&
BorderStyle = 1 'Fixed Single
Caption = "问题1:如何实现汽车运动?"
Height = 495
Left = 1200
TabIndex = 2
Top = 1920
Width = 4695
End
End
Attribute VB_Name = "Frm7_5_2"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Form_Load()
Picture1.Left = HScroll1.Left
End Sub
Private Sub HScroll1_Change()
Picture1.Left = HScroll1.Value
End Sub
Private Sub HScroll1_Scroll()
Picture1.Left = HScroll1.Value
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -