home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Object = "{6B7E6392-850A-101B-AFC0-4210102A8DA7}#1.1#0"; "COMCTL32.OCX"
- Begin VB.Form Form1
- BackColor = &H8000000A&
- Caption = "Slider Demo"
- ClientHeight = 2790
- ClientLeft = 60
- ClientTop = 345
- ClientWidth = 5250
- LinkTopic = "Form1"
- ScaleHeight = 2790
- ScaleWidth = 5250
- StartUpPosition = 3 'Windows Default
- Begin ComctlLib.Slider Slider1
- Height = 435
- Left = 210
- TabIndex = 0
- Top = 900
- Width = 4740
- _ExtentX = 8361
- _ExtentY = 767
- MouseIcon = "slider.frx":0000
- LargeChange = 1
- Min = 1
- Max = 5
- SelStart = 1
- TickStyle = 3
- Value = 1
- End
- Begin VB.Label Label7
- Alignment = 2 'Center
- BorderStyle = 1 'Fixed Single
- Caption = "Use the slider, or click on the desired setting to set the ship's speed"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 9.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 600
- Left = 465
- TabIndex = 7
- Top = 105
- Width = 4350
- End
- Begin VB.Label Label6
- Alignment = 2 'Center
- Caption = "Are we moving yet?"
- BeginProperty Font
- Name = "Comic Sans MS"
- Size = 14.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 540
- Left = 375
- TabIndex = 6
- Top = 2070
- Width = 4545
- End
- Begin VB.Label Label5
- BackStyle = 0 'Transparent
- Caption = "Speedy"
- BeginProperty Font
- Name = "Comic Sans MS"
- Size = 11.25
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H00FFFFFF&
- Height = 300
- Left = 4380
- TabIndex = 5
- Top = 1410
- Width = 870
- End
- Begin VB.Label Label4
- BackStyle = 0 'Transparent
- Caption = "Fast"
- BeginProperty Font
- Name = "Comic Sans MS"
- Size = 11.25
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H0000FF00&
- Height = 300
- Left = 3540
- TabIndex = 4
- Top = 1410
- Width = 525
- End
- Begin VB.Label Label3
- BackStyle = 0 'Transparent
- Caption = "Medium"
- BeginProperty Font
- Name = "Comic Sans MS"
- Size = 11.25
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H00FFFF00&
- Height = 300
- Left = 2250
- TabIndex = 3
- Top = 1410
- Width = 840
- End
- Begin VB.Label Label2
- BackStyle = 0 'Transparent
- Caption = "Slow"
- BeginProperty Font
- Name = "Comic Sans MS"
- Size = 11.25
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H0000FFFF&
- Height = 300
- Left = 1260
- TabIndex = 2
- Top = 1410
- Width = 525
- End
- Begin VB.Label Label1
- BackStyle = 0 'Transparent
- Caption = "Off"
- BeginProperty Font
- Name = "Comic Sans MS"
- Size = 11.25
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H000000FF&
- Height = 300
- Left = 225
- TabIndex = 1
- Top = 1410
- Width = 480
- End
- Attribute VB_Name = "Form1"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Option Explicit
- Private Sub Label1_Click()
- Slider1.Value = 1
- End Sub
- Private Sub Label2_Click()
- Slider1.Value = 2
- End Sub
- Private Sub Label3_Click()
- Slider1.Value = 3
- End Sub
- Private Sub Label4_Click()
- Slider1.Value = 4
- End Sub
- Private Sub Label5_Click()
- Slider1.Value = 5
- End Sub
- Private Sub Slider1_Change()
- Select Case Slider1.Value
- Case 1: Label6.Caption = "Are we moving yet?"
- Case 2: Label6.Caption = "We're moving at 400 mph"
- Case 3: Label6.Caption = "We're cruising at 1000 mph"
- Case 4: Label6.Caption = "Warp factor 1, stand by!"
- Case 5: Label6.Caption = "Warp factor 9!"
- End Select
- End Sub
-