home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Object = "{75C038D3-EA57-11D2-A3BC-000000000000}#1.0#0"; "fsScroll5D.ocx"
- Begin VB.Form frmManualScroll
- Caption = "Manual Scroll"
- ClientHeight = 2685
- ClientLeft = 60
- ClientTop = 345
- ClientWidth = 5445
- LinkTopic = "Form1"
- ScaleHeight = 2685
- ScaleWidth = 5445
- StartUpPosition = 3 'Windows Default
- Begin VB.CommandButton Command5
- Height = 465
- Left = 4350
- Picture = "Form6.frx":0000
- Style = 1 'Graphical
- TabIndex = 21
- Top = 1230
- UseMaskColor = -1 'True
- Width = 615
- End
- Begin VB.CommandButton Command4
- Height = 525
- Left = 4350
- Picture = "Form6.frx":0442
- Style = 1 'Graphical
- TabIndex = 20
- Top = 630
- UseMaskColor = -1 'True
- Width = 615
- End
- Begin VB.CommandButton Command3
- Height = 465
- Left = 2130
- Picture = "Form6.frx":0884
- Style = 1 'Graphical
- TabIndex = 23
- Top = 2130
- Width = 615
- End
- Begin VB.CommandButton Command2
- Height = 465
- Left = 1410
- Picture = "Form6.frx":0CC6
- Style = 1 'Graphical
- TabIndex = 22
- Top = 2130
- Width = 615
- End
- Begin VB.CommandButton Command1
- Caption = "OK"
- Height = 435
- Left = 4110
- TabIndex = 19
- Top = 120
- Width = 1185
- End
- Begin FishheadScroll.fsScroll fsScroll1
- Height = 1845
- Left = 150
- TabIndex = 0
- Top = 90
- Width = 3825
- _ExtentX = 6747
- _ExtentY = 3254
- MouseIcon = "Form6.frx":1108
- Begin VB.Frame Frame1
- Caption = "Select 2nd Type:"
- Height = 2745
- Index = 1
- Left = 1815
- TabIndex = 11
- Top = 945
- Width = 1485
- Begin VB.OptionButton Option1
- Caption = "Item 1"
- Height = 375
- Index = 9
- Left = 180
- TabIndex = 12
- Top = 450
- Width = 1000
- End
- Begin VB.OptionButton Option1
- Caption = "Item 2"
- Height = 375
- Index = 8
- Left = 180
- TabIndex = 13
- Top = 870
- Width = 1000
- End
- Begin VB.OptionButton Option1
- Caption = "Item 3"
- Height = 375
- Index = 7
- Left = 180
- TabIndex = 14
- Top = 1290
- Width = 1000
- End
- Begin VB.OptionButton Option1
- Caption = "Item 4"
- Height = 375
- Index = 6
- Left = 180
- TabIndex = 15
- Top = 1770
- Width = 1000
- End
- Begin VB.OptionButton Option1
- Caption = "Item 5"
- Height = 375
- Index = 5
- Left = 180
- TabIndex = 16
- Top = 2220
- Width = 1000
- End
- End
- Begin VB.Frame Frame1
- Caption = "Select Type:"
- Height = 2745
- Index = 0
- Left = 165
- TabIndex = 5
- Top = 975
- Width = 1485
- Begin VB.OptionButton Option1
- Caption = "Item 5"
- Height = 375
- Index = 4
- Left = 180
- TabIndex = 10
- Top = 2220
- Width = 1000
- End
- Begin VB.OptionButton Option1
- Caption = "Item 4"
- Height = 375
- Index = 3
- Left = 180
- TabIndex = 9
- Top = 1770
- Width = 1000
- End
- Begin VB.OptionButton Option1
- Caption = "Item 3"
- Height = 375
- Index = 2
- Left = 180
- TabIndex = 8
- Top = 1290
- Width = 1000
- End
- Begin VB.OptionButton Option1
- Caption = "Item 2"
- Height = 375
- Index = 1
- Left = 180
- TabIndex = 7
- Top = 870
- Width = 1000
- End
- Begin VB.OptionButton Option1
- Caption = "Item 1"
- Height = 375
- Index = 0
- Left = 180
- TabIndex = 6
- Top = 450
- Width = 1000
- End
- End
- Begin VB.TextBox Text2
- Height = 315
- Left = 855
- TabIndex = 4
- Top = 525
- Width = 2480
- End
- Begin VB.PictureBox Picture2
- Height = 1875
- Left = 4095
- Picture = "Form6.frx":1422
- ScaleHeight = 1815
- ScaleWidth = 1845
- TabIndex = 18
- Top = 2025
- Width = 1905
- End
- Begin VB.PictureBox Picture1
- Height = 1695
- Left = 4095
- Picture = "Form6.frx":44A4
- ScaleHeight = 1635
- ScaleWidth = 1815
- TabIndex = 17
- Top = 135
- Width = 1875
- End
- Begin VB.TextBox Text1
- Height = 315
- Left = 855
- TabIndex = 2
- Top = 135
- Width = 2480
- End
- Begin VB.Label Label2
- Caption = "URL:"
- Height = 285
- Left = 195
- TabIndex = 3
- Top = 585
- Width = 855
- End
- Begin VB.Label Label1
- Caption = "Name:"
- Height = 255
- Left = 165
- TabIndex = 1
- Top = 195
- Width = 855
- End
- End
- Attribute VB_Name = "frmManualScroll"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Option Explicit
- Private Sub Command1_Click()
- Unload Me
- End Sub
- ' ********************************************************
- ' ** Fishhead Software
- ' ********************************************************
- ' ** This sample shows how to create a manual scrolling
- ' ** form. Note: When using SetScrollPos, you don't
- ' ** need to worry about going beyond the max and min
- ' ** values, fsScroll will hanlde this for you.
- ' ********************************************************
- Private Sub Command2_Click()
- Dim x As Single, y As Single
- fsScroll1.GetScrollPos x, y
- fsScroll1.SetScrollPos x - 100, y
- End Sub
- Private Sub Command3_Click()
- Dim x As Single, y As Single
- fsScroll1.GetScrollPos x, y
- fsScroll1.SetScrollPos x + 100, y
- End Sub
- Private Sub Command4_Click()
- Dim x As Single, y As Single
- fsScroll1.GetScrollPos x, y
- fsScroll1.SetScrollPos x, y - 100
- End Sub
- Private Sub Command5_Click()
- Dim x As Single, y As Single
- fsScroll1.GetScrollPos x, y
- fsScroll1.SetScrollPos x, y + 100
- End Sub
- Private Sub Form_Load()
- fsScroll1.AutoScroll = False
- fsScroll1.SmallChangeY = 200
- fsScroll1.LargeChangeY = 1000
- End Sub
-