home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Object = "{489F6F86-FA5F-46C1-9154-0BDFE98E2B02}#1.0#0"; "NCTDesignBox.ocx"
- Begin VB.Form frmStepV1
- BorderStyle = 1 'Fixed Single
- Caption = "Test StepButtonVer01"
- ClientHeight = 3390
- ClientLeft = 45
- ClientTop = 330
- ClientWidth = 6210
- Icon = "frmStepV1.frx":0000
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 3390
- ScaleWidth = 6210
- StartUpPosition = 2 'CenterScreen
- Begin NCTDesignBox.StepButtonVer01 StepButtonVer011
- Height = 1500
- Left = 330
- TabIndex = 9
- Top = 330
- Width = 1500
- _ExtentX = 2646
- _ExtentY = 2646
- End
- Begin VB.HScrollBar HScroll1
- Height = 825
- LargeChange = 5
- Left = 2160
- Max = 1000
- TabIndex = 8
- Top = 2310
- Width = 3705
- End
- Begin VB.Frame Frame2
- Caption = "BtnBorder"
- Height = 945
- Left = 210
- TabIndex = 0
- Top = 2220
- Width = 1815
- Begin VB.OptionButton Option2
- Caption = "Single"
- Height = 285
- Left = 210
- TabIndex = 2
- Top = 540
- Width = 1155
- End
- Begin VB.OptionButton Option1
- Caption = "None"
- Height = 225
- Left = 210
- TabIndex = 1
- Top = 270
- Value = -1 'True
- Width = 1245
- End
- End
- Begin VB.Label Label1
- Alignment = 2 'Center
- Caption = "BtnClick Event"
- Height = 450
- Left = 2250
- TabIndex = 7
- Top = 210
- Width = 3900
- End
- Begin VB.Label Label2
- Alignment = 2 'Center
- Caption = "BtnMouseDown Event"
- Height = 330
- Left = 2250
- TabIndex = 6
- Top = 660
- Width = 3900
- End
- Begin VB.Label Label3
- Alignment = 2 'Center
- Caption = "BtnMouseUp Event"
- Height = 330
- Left = 2250
- TabIndex = 5
- Top = 990
- Width = 3900
- End
- Begin VB.Label Label4
- Alignment = 2 'Center
- Caption = "BtnMouseMove Event"
- Height = 330
- Left = 2250
- TabIndex = 4
- Top = 1320
- Width = 3900
- End
- Begin VB.Label Label5
- Alignment = 2 'Center
- Caption = "ValueChange Event"
- Height = 330
- Left = 2250
- TabIndex = 3
- Top = 1680
- Width = 3900
- End
- Attribute VB_Name = "frmStepV1"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Private Sub HScroll1_Change()
- HScroll1_Scroll
- End Sub
- Private Sub HScroll1_Scroll()
- If StepButtonVer011.Value < HScroll1.Value Then
- StepButtonVer011.ScrollPlus
- Else
- StepButtonVer011.ScrollMinus
- 'StepButtonVer011.ScrollMinus
- End If
- StepButtonVer011.Value = HScroll1.Value
- 'StepButtonVer011_ValueChange HScroll1.Value
- End Sub
- Private Sub Option1_Click()
- StepButtonVer011.BtnBorder = bbNone
- StepButtonVer011.Top = 330
- StepButtonVer011.Left = 330
- End Sub
- Private Sub Option2_Click()
- StepButtonVer011.BtnBorder = bbSingle
- StepButtonVer011.Top = 150
- StepButtonVer011.Left = 150
- End Sub
- Private Sub StepButtonVer011_MouseClick(Btn As Boolean)
- Label1.Caption = "MouseClick Event(Btn = " & Btn & ")"
- End Sub
- Private Sub StepButtonVer011_MouseDown(MouseButton As Integer, Btn As Boolean)
- Label2.Caption = "MouseDown Event(MouseBtn = " & MouseButton & " Btn = " & Btn & ")"
- End Sub
- Private Sub StepButtonVer011_MouseMove(MouseButton As Integer, Btn As Boolean)
- Label4.Caption = "MouseMove Event(MouseBtn = " & MouseButton & " Btn = " & Btn & ")"
- End Sub
- Private Sub StepButtonVer011_MouseUp(MouseButton As Integer, Btn As Boolean)
- Label3.Caption = "MouseUp Event(MouseBtn = " & MouseButton & " Btn = " & Btn & ")"
- End Sub
- Private Sub StepButtonVer011_ValueChange(ByVal Value As Double)
- HScroll1.Value = Value
- Label5.Caption = "ValueChange Event (Val = " & Format(Value, "0.##0") & ")"
- End Sub
-