home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "COMDLG32.OCX"
- Object = "{86CF1D34-0C5F-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCT2.OCX"
- Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
- Object = "{489F6F86-FA5F-46C1-9154-0BDFE98E2B02}#1.0#0"; "NCTDesignBox.ocx"
- Begin VB.Form frmHorSlider
- BorderStyle = 1 'Fixed Single
- Caption = "Test SliderV01"
- ClientHeight = 3750
- ClientLeft = 45
- ClientTop = 330
- ClientWidth = 4980
- Icon = "frmHorSlider.frx":0000
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 3750
- ScaleWidth = 4980
- StartUpPosition = 2 'CenterScreen
- Begin NCTDesignBox.VertSliderVer01 VertSliderVer011
- Height = 3555
- Left = 4560
- TabIndex = 21
- Top = 60
- Width = 150
- _ExtentX = 265
- _ExtentY = 6271
- End
- Begin NCTDesignBox.HorSliderVer01 HorSliderVer011
- Height = 150
- Left = 300
- TabIndex = 20
- Top = 60
- Width = 4035
- _ExtentX = 7117
- _ExtentY = 265
- End
- Begin VB.Frame Frame3
- Caption = "SizeStyle"
- Height = 1005
- Left = 3420
- TabIndex = 17
- Top = 2610
- Width = 1035
- Begin VB.OptionButton Option6
- Caption = "Small"
- Height = 375
- Left = 210
- TabIndex = 19
- Top = 210
- Value = -1 'True
- Width = 705
- End
- Begin VB.OptionButton Option5
- Caption = "Big"
- Height = 345
- Left = 210
- TabIndex = 18
- Top = 540
- Width = 765
- End
- End
- Begin MSComDlg.CommonDialog CommonDialog1
- Left = 240
- Top = 480
- _ExtentX = 847
- _ExtentY = 847
- _Version = 393216
- End
- Begin VB.Frame Frame2
- Caption = "Downed"
- Height = 1005
- Left = 2340
- TabIndex = 14
- Top = 2610
- Width = 1035
- Begin VB.OptionButton Option7
- Caption = "False"
- Height = 345
- Left = 210
- TabIndex = 16
- Top = 540
- Width = 765
- End
- Begin VB.OptionButton Option8
- Caption = "True"
- Height = 375
- Left = 210
- TabIndex = 15
- Top = 210
- Value = -1 'True
- Width = 705
- End
- End
- Begin VB.CommandButton Command1
- Caption = "BackColor"
- Height = 345
- Left = 150
- TabIndex = 13
- Top = 1710
- Width = 2000
- End
- Begin VB.CommandButton Command2
- Caption = "BorderColor"
- Height = 345
- Left = 150
- TabIndex = 12
- Top = 2130
- Width = 2000
- End
- Begin VB.PictureBox Picture1
- Height = 345
- Left = 2220
- ScaleHeight = 285
- ScaleWidth = 345
- TabIndex = 11
- Top = 1680
- Width = 405
- End
- Begin VB.PictureBox Picture2
- Height = 345
- Left = 2220
- ScaleHeight = 285
- ScaleWidth = 345
- TabIndex = 10
- Top = 2145
- Width = 405
- End
- Begin VB.Frame Frame1
- Caption = "Border"
- Height = 1005
- Left = 150
- TabIndex = 5
- Top = 2610
- Width = 2145
- Begin VB.OptionButton Option1
- Caption = "None"
- Height = 375
- Left = 210
- TabIndex = 9
- Top = 210
- Width = 765
- End
- Begin VB.OptionButton Option2
- Caption = "Single"
- Height = 345
- Left = 210
- TabIndex = 8
- Top = 540
- Width = 765
- End
- Begin VB.OptionButton Option3
- Caption = "Lowered"
- Height = 345
- Left = 1140
- TabIndex = 7
- Top = 210
- Value = -1 'True
- Width = 975
- End
- Begin VB.OptionButton Option4
- Caption = "Raised"
- Height = 345
- Left = 1140
- TabIndex = 6
- Top = 540
- Width = 975
- End
- End
- Begin VB.TextBox Text4
- Height = 345
- Left = 3570
- TabIndex = 2
- Text = "2"
- Top = 1740
- Width = 525
- End
- Begin MSComctlLib.Slider Slider1
- Height = 615
- Left = 90
- TabIndex = 0
- Top = 930
- Width = 4305
- _ExtentX = 7594
- _ExtentY = 1085
- _Version = 393216
- Max = 100
- TickStyle = 2
- TickFrequency = 2
- End
- Begin MSComCtl2.UpDown UpDown4
- Height = 345
- Left = 4080
- TabIndex = 3
- Top = 1740
- Width = 240
- _ExtentX = 423
- _ExtentY = 609
- _Version = 393216
- Value = 2
- BuddyControl = "Text4"
- BuddyDispid = 196624
- OrigLeft = 3810
- OrigTop = 1110
- OrigRight = 4050
- OrigBottom = 1515
- Max = 100
- SyncBuddy = -1 'True
- BuddyProperty = 65547
- Enabled = -1 'True
- End
- Begin VB.Label Label4
- Alignment = 1 'Right Justify
- Caption = "Speed"
- Height = 285
- Left = 2820
- TabIndex = 4
- Top = 1800
- Width = 615
- End
- Begin VB.Label Label1
- Alignment = 2 'Center
- Caption = "ValueChange Event"
- Height = 465
- Left = 180
- TabIndex = 1
- Top = 510
- Width = 4155
- End
- Attribute VB_Name = "frmHorSlider"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Private Sub Form_Load()
- Picture1.BackColor = HorSliderVer011.BackColor
- Picture2.BackColor = HorSliderVer011.BorderColor
- End Sub
- Private Sub HorSliderVer011_ValueChange(Value As Long)
- Label1.Caption = "HorSlider ValueChange Event (Value = " & Value & ")"
- End Sub
- Private Sub Option1_Click()
- HorSliderVer011.Border = abbNone
- VertSliderVer011.Border = abbNone
- End Sub
- Private Sub Option2_Click()
- HorSliderVer011.Border = abbSingle
- VertSliderVer011.Border = abbSingle
- End Sub
- Private Sub Option3_Click()
- HorSliderVer011.Border = abbLowered
- VertSliderVer011.Border = abbLowered
- End Sub
- Private Sub Option4_Click()
- HorSliderVer011.Border = abbRaised
- VertSliderVer011.Border = abbRaised
- End Sub
- Private Sub Option5_Click()
- HorSliderVer011.SliderSize = sssBig
- VertSliderVer011.SliderSize = sssBig
- End Sub
- Private Sub Option6_Click()
- HorSliderVer011.SliderSize = sssSmall
- VertSliderVer011.SliderSize = sssSmall
- End Sub
- Private Sub Option7_Click()
- HorSliderVer011.Downed = False
- VertSliderVer011.Downed = False
- End Sub
- Private Sub Option8_Click()
- HorSliderVer011.Downed = True
- VertSliderVer011.Downed = True
- End Sub
- Private Sub Slider1_Change()
- HorSliderVer011.Value = Slider1.Value
- VertSliderVer011.Value = Slider1.Value
- End Sub
- Private Sub UpDown4_Change()
- VertSliderVer011.Speed = UpDown4.Value
- HorSliderVer011.Speed = UpDown4.Value
- End Sub
- Private Sub VertSliderVer011_ValueChange(Value As Long)
- Label1.Caption = "VertSlider ValueChange Event (Value = " & Value & ")"
- End Sub
- Private Sub Command1_Click()
- Dim OldCol, NewCol As OLE_COLOR
- OldCol = HorSliderVer011.BackColor
- CommonDialog1.Color = OldCol
- CommonDialog1.DialogTitle = "Choice Color"
- CommonDialog1.Flags = cdlCCRGBInit Or cdlCCFullOpen
- CommonDialog1.ShowColor
- NewCol = CommonDialog1.Color
- HorSliderVer011.BackColor = NewCol
- VertSliderVer011.BackColor = NewCol
- Picture1.BackColor = HorSliderVer011.BackColor
- End Sub
- Private Sub Command2_Click()
- Dim OldCol, NewCol As OLE_COLOR
- OldCol = HorSliderVer011.BorderColor
- CommonDialog1.Color = OldCol
- CommonDialog1.DialogTitle = "Choice Color"
- CommonDialog1.Flags = cdlCCRGBInit Or cdlCCFullOpen
- CommonDialog1.ShowColor
- NewCol = CommonDialog1.Color
- HorSliderVer011.BorderColor = NewCol
- VertSliderVer011.BorderColor = NewCol
- Picture2.BackColor = HorSliderVer011.BorderColor
- End Sub
-