home *** CD-ROM | disk | FTP | other *** search
- VERSION 4.00
- Begin VB.Form frmScrollBars
- Caption = "Scroll Bar Demo"
- ClientHeight = 4620
- ClientLeft = 615
- ClientTop = 1590
- ClientWidth = 6195
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 1
- weight = 700
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- Height = 5025
- Left = 555
- LinkTopic = "Form1"
- ScaleHeight = 4620
- ScaleWidth = 6195
- Top = 1245
- Width = 6315
- Begin VB.TextBox txtColor
- Height = 855
- Left = 1440
- TabIndex = 7
- Top = 2280
- Width = 3375
- End
- Begin VB.CommandButton cmdClose
- Caption = "&Close"
- Height = 495
- Left = 3840
- TabIndex = 6
- Top = 3720
- Width = 1215
- End
- Begin VB.HScrollBar hsbBlue
- Height = 255
- LargeChange = 35
- Left = 1200
- Max = 255
- SmallChange = 5
- TabIndex = 5
- Top = 1680
- Width = 3855
- End
- Begin VB.HScrollBar hsbGreen
- Height = 255
- LargeChange = 35
- Left = 1200
- Max = 255
- SmallChange = 5
- TabIndex = 3
- Top = 1080
- Width = 3855
- End
- Begin VB.HScrollBar hsbRed
- Height = 255
- LargeChange = 30
- Left = 1200
- Max = 255
- SmallChange = 5
- TabIndex = 1
- Top = 480
- Width = 3855
- End
- Begin VB.Label lblBlue
- Caption = "&Blue"
- Height = 255
- Left = 360
- TabIndex = 4
- Top = 1680
- Width = 735
- End
- Begin VB.Label lblGreen
- Caption = "&Green"
- Height = 255
- Left = 360
- TabIndex = 2
- Top = 1080
- Width = 735
- End
- Begin VB.Label lblRed
- Caption = "&Red"
- Height = 255
- Left = 360
- TabIndex = 0
- Top = 480
- Width = 735
- End
- Attribute VB_Name = "frmScrollBars"
- Attribute VB_Creatable = False
- Attribute VB_Exposed = False
- Private Sub cmdClose_Click()
- Unload Me ' Unload this form.
- End Sub
- Private Sub DoColor()
- txtColor.BackColor = RGB(hsbRed.Value, hsbGreen.Value, hsbBlue.Value)
- End Sub
- Private Sub hsbBlue_Change()
- hsbBlue_Scroll ' Call the event procedure directly.
- End Sub
- Private Sub hsbBlue_Scroll()
- DoColor ' Call the DoColor general procedure.
- End Sub
- Private Sub hsbGreen_Change()
- hsbGreen_Scroll ' Call the event procedure directly.
- End Sub
- Private Sub hsbGreen_Scroll()
- DoColor ' Call the DoColor general procedure.
- End Sub
- Private Sub hsbRed_Change()
- hsbRed_Scroll ' Call the event procedure directly.
- End Sub
- Private Sub hsbRed_Scroll()
- DoColor ' Call the DoColor general procedure.
- End Sub
-