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 frmVertSlider
- BorderStyle = 1 'Fixed Single
- Caption = "Test SliderV02"
- ClientHeight = 3315
- ClientLeft = 45
- ClientTop = 330
- ClientWidth = 5055
- Icon = "frmVertSlider.frx":0000
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 3315
- ScaleWidth = 5055
- StartUpPosition = 2 'CenterScreen
- Begin NCTDesignBox.VertSliderVer02 VertSliderVer021
- Height = 3075
- Left = 4680
- TabIndex = 17
- Top = 120
- Width = 225
- _ExtentX = 397
- _ExtentY = 5424
- End
- Begin NCTDesignBox.HorSliderVer02 HorSliderVer021
- Height = 225
- Left = 300
- TabIndex = 16
- Top = 120
- Width = 4095
- _ExtentX = 7223
- _ExtentY = 397
- End
- Begin MSComDlg.CommonDialog CommonDialog1
- Left = 270
- Top = 480
- _ExtentX = 847
- _ExtentY = 847
- _Version = 393216
- End
- Begin VB.CommandButton Command3
- Caption = "SliderBackColor"
- Height = 345
- Left = 120
- TabIndex = 15
- Top = 2820
- Width = 1800
- End
- Begin VB.PictureBox Picture3
- Height = 345
- Left = 2040
- ScaleHeight = 285
- ScaleWidth = 345
- TabIndex = 14
- Top = 2820
- Width = 405
- End
- Begin VB.TextBox Text4
- Height = 345
- Left = 3870
- TabIndex = 9
- Text = "2"
- Top = 1740
- Width = 525
- End
- Begin VB.Frame Frame1
- Caption = "Border"
- Height = 1005
- Left = 2670
- TabIndex = 4
- Top = 2160
- Width = 1995
- Begin VB.OptionButton Option4
- Caption = "Raised"
- Height = 345
- Left = 960
- TabIndex = 8
- Top = 540
- Width = 975
- End
- Begin VB.OptionButton Option3
- Caption = "Lowered"
- Height = 345
- Left = 960
- TabIndex = 7
- Top = 210
- Value = -1 'True
- Width = 975
- End
- Begin VB.OptionButton Option2
- Caption = "Single"
- Height = 345
- Left = 120
- TabIndex = 6
- Top = 540
- Width = 885
- End
- Begin VB.OptionButton Option1
- Caption = "None"
- Height = 375
- Left = 120
- TabIndex = 5
- Top = 210
- Width = 945
- End
- End
- Begin VB.PictureBox Picture2
- Height = 345
- Left = 2040
- ScaleHeight = 285
- ScaleWidth = 345
- TabIndex = 3
- Top = 2295
- Width = 405
- End
- Begin VB.PictureBox Picture1
- Height = 345
- Left = 2040
- ScaleHeight = 285
- ScaleWidth = 345
- TabIndex = 2
- Top = 1770
- Width = 405
- End
- Begin VB.CommandButton Command2
- Caption = "BorderColor"
- Height = 345
- Left = 120
- TabIndex = 1
- Top = 2295
- Width = 1800
- End
- Begin VB.CommandButton Command1
- Caption = "BackColor"
- Height = 345
- Left = 120
- TabIndex = 0
- Top = 1770
- Width = 1800
- End
- Begin MSComctlLib.Slider Slider1
- Height = 555
- Left = 0
- TabIndex = 10
- Top = 870
- Width = 4575
- _ExtentX = 8070
- _ExtentY = 979
- _Version = 393216
- Max = 100
- TickStyle = 2
- TickFrequency = 2
- End
- Begin MSComCtl2.UpDown UpDown4
- Height = 345
- Left = 4380
- TabIndex = 11
- Top = 1740
- Width = 240
- _ExtentX = 423
- _ExtentY = 609
- _Version = 393216
- Value = 2
- BuddyControl = "Text4"
- BuddyDispid = 196611
- OrigLeft = 3810
- OrigTop = 1110
- OrigRight = 4050
- OrigBottom = 1515
- Max = 100
- SyncBuddy = -1 'True
- BuddyProperty = 65547
- Enabled = -1 'True
- End
- Begin VB.Label Label1
- Alignment = 2 'Center
- Caption = "ValueChange Event"
- Height = 405
- Left = 150
- TabIndex = 13
- Top = 480
- Width = 4335
- End
- Begin VB.Label Label4
- Alignment = 1 'Right Justify
- Caption = "Speed"
- Height = 285
- Left = 2850
- TabIndex = 12
- Top = 1770
- Width = 795
- End
- Attribute VB_Name = "frmVertSlider"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Private Sub Command1_Click()
- Dim OldCol, NewCol As OLE_COLOR
- OldCol = HorSliderVer021.BackColor
- CommonDialog1.Color = OldCol
- CommonDialog1.DialogTitle = "Choice Color"
- CommonDialog1.Flags = cdlCCRGBInit Or cdlCCFullOpen
- CommonDialog1.ShowColor
- NewCol = CommonDialog1.Color
- HorSliderVer021.BackColor = NewCol
- VertSliderVer021.BackColor = NewCol
- Picture1.BackColor = HorSliderVer021.BackColor
- End Sub
- Private Sub Command2_Click()
- Dim OldCol, NewCol As OLE_COLOR
- OldCol = HorSliderVer021.BorderColor
- CommonDialog1.Color = OldCol
- CommonDialog1.DialogTitle = "Choice Color"
- CommonDialog1.Flags = cdlCCRGBInit Or cdlCCFullOpen
- CommonDialog1.ShowColor
- NewCol = CommonDialog1.Color
- HorSliderVer021.BorderColor = NewCol
- VertSliderVer021.BorderColor = NewCol
- Picture2.BackColor = HorSliderVer021.BorderColor
- End Sub
- Private Sub Command3_Click()
- Dim OldCol, NewCol As OLE_COLOR
- OldCol = HorSliderVer021.SliderBackColor
- CommonDialog1.Color = OldCol
- CommonDialog1.DialogTitle = "Choice Color"
- CommonDialog1.Flags = cdlCCRGBInit Or cdlCCFullOpen
- CommonDialog1.ShowColor
- NewCol = CommonDialog1.Color
- HorSliderVer021.SliderBackColor = NewCol
- VertSliderVer021.SliderBackColor = NewCol
- Picture3.BackColor = HorSliderVer021.SliderBackColor
- End Sub
- Private Sub Form_Load()
- Picture1.BackColor = HorSliderVer021.BackColor
- Picture2.BackColor = HorSliderVer021.BorderColor
- Picture3.BackColor = HorSliderVer021.SliderBackColor
- End Sub
- Private Sub HorSliderVer021_ValueChange(Value As Long)
- Label1.Caption = "HorSlider ValueChange Event (Value = " & Value & ")"
- End Sub
- Private Sub Option1_Click()
- HorSliderVer021.Border = abbNone
- VertSliderVer021.Border = abbNone
- End Sub
- Private Sub Option2_Click()
- HorSliderVer021.Border = abbSingle
- VertSliderVer021.Border = abbSingle
- End Sub
- Private Sub Option3_Click()
- HorSliderVer021.Border = abbLowered
- VertSliderVer021.Border = abbLowered
- End Sub
- Private Sub Option4_Click()
- HorSliderVer021.Border = abbRaised
- VertSliderVer021.Border = abbRaised
- End Sub
- Private Sub Slider1_Change()
- HorSliderVer021.Value = Slider1.Value
- VertSliderVer021.Value = Slider1.Value
- End Sub
- Private Sub UpDown4_Change()
- VertSliderVer021.Speed = UpDown4.Value
- HorSliderVer021.Speed = UpDown4.Value
- End Sub
- Private Sub VertSliderVer021_ValueChange(Value As Long)
- Label1.Caption = "VertSlider ValueChange Event (Value = " & Value & ")"
- End Sub
-