home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- 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 frmVolV1
- BorderStyle = 1 'Fixed Single
- Caption = "Test VolumeButtonVer01"
- ClientHeight = 3090
- ClientLeft = 45
- ClientTop = 330
- ClientWidth = 5700
- Icon = "frmPlayV2.frx":0000
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 3090
- ScaleWidth = 5700
- StartUpPosition = 2 'CenterScreen
- Begin NCTDesignBox.VolumeButtonVer01 VolumeButtonVer011
- Height = 1815
- Left = 150
- TabIndex = 15
- Top = 150
- Width = 1815
- _ExtentX = 3201
- _ExtentY = 3201
- IndColor = 2
- BtnBorder = 1
- End
- Begin VB.TextBox Text4
- Height = 345
- Left = 4860
- TabIndex = 13
- Text = "1"
- Top = 2460
- Width = 465
- End
- Begin MSComctlLib.ProgressBar ProgressBar1
- Height = 255
- Left = 2160
- TabIndex = 11
- Top = 2130
- Width = 3375
- _ExtentX = 5953
- _ExtentY = 450
- _Version = 393216
- Appearance = 1
- Min = 1e-4
- Max = 1001
- End
- Begin VB.TextBox Text1
- Alignment = 2 'Center
- Height = 285
- Left = 3300
- TabIndex = 9
- Text = "2"
- Top = 2490
- Width = 480
- End
- Begin MSComCtl2.UpDown UpDown1
- Height = 285
- Left = 3750
- TabIndex = 8
- Top = 2490
- Width = 195
- _ExtentX = 423
- _ExtentY = 503
- _Version = 393216
- Value = 2
- BuddyControl = "Text1"
- BuddyDispid = 196610
- OrigLeft = 1200
- OrigTop = 3150
- OrigRight = 1395
- OrigBottom = 3645
- Max = 12
- Min = 1
- SyncBuddy = -1 'True
- BuddyProperty = 65547
- Enabled = -1 'True
- End
- Begin VB.Frame Frame2
- Caption = "BtnBorder"
- Height = 945
- Left = 150
- TabIndex = 5
- Top = 2010
- Width = 1815
- Begin VB.OptionButton Option1
- Caption = "None"
- Height = 225
- Left = 210
- TabIndex = 7
- Top = 270
- Width = 1245
- End
- Begin VB.OptionButton Option2
- Caption = "Single"
- Height = 285
- Left = 210
- TabIndex = 6
- Top = 540
- Value = -1 'True
- Width = 1155
- End
- End
- Begin MSComCtl2.UpDown UpDown4
- Height = 345
- Left = 5310
- TabIndex = 14
- Top = 2460
- Width = 240
- _ExtentX = 423
- _ExtentY = 609
- _Version = 393216
- Value = 1
- BuddyControl = "Text4"
- BuddyDispid = 196609
- OrigLeft = 3810
- OrigTop = 1110
- OrigRight = 4050
- OrigBottom = 1515
- Max = 100
- SyncBuddy = -1 'True
- BuddyProperty = 65547
- Enabled = -1 'True
- End
- Begin VB.Label Label7
- Alignment = 1 'Right Justify
- Caption = "Speed"
- Height = 285
- Left = 4110
- TabIndex = 12
- Top = 2490
- Width = 645
- End
- Begin VB.Label Label6
- Caption = "IndColor"
- Height = 255
- Left = 2160
- TabIndex = 10
- Top = 2520
- Width = 885
- End
- Begin VB.Label Label5
- Alignment = 2 'Center
- Caption = "ValueChange Event"
- Height = 570
- Left = 2190
- TabIndex = 4
- Top = 1440
- Width = 3375
- End
- Begin VB.Label Label4
- Alignment = 2 'Center
- Caption = "BtnMouseMove Event"
- Height = 330
- Left = 2190
- TabIndex = 3
- Top = 1110
- Width = 3375
- End
- Begin VB.Label Label3
- Alignment = 2 'Center
- Caption = "BtnMouseUp Event"
- Height = 330
- Left = 2190
- TabIndex = 2
- Top = 780
- Width = 3375
- End
- Begin VB.Label Label2
- Alignment = 2 'Center
- Caption = "BtnMouseDown Event"
- Height = 330
- Left = 2190
- TabIndex = 1
- Top = 450
- Width = 3375
- End
- Begin VB.Label Label1
- Alignment = 2 'Center
- Caption = "BtnClick Event"
- Height = 330
- Left = 2190
- TabIndex = 0
- Top = 120
- Width = 3375
- End
- Attribute VB_Name = "frmVolV1"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Option Explicit
- Private Sub UpDown1_Change()
- VolumeButtonVer011.IndColor = UpDown1.Value
- End Sub
- Private Sub UpDown4_Change()
- VolumeButtonVer011.Speed = UpDown4.Value
- End Sub
- Private Sub VolumeButtonVer011_MouseClick(Btn As Boolean)
- Label1.Caption = "BtnClick Event (InBtn=" & Btn & ")"
- End Sub
- Private Sub VolumeButtonVer011_MouseDown(Button As Integer, Btn As Boolean)
- Label2.Caption = "BtnMoseDown Event (MB=" & Button & ", InBtn=" & Btn & ")"
- End Sub
- Private Sub VolumeButtonVer011_MouseMove(Button As Integer, Btn As Boolean)
- Label4.Caption = "BtnMoseMove Event (MB=" & Button & ", InBtn=" & Btn & ")"
- End Sub
- Private Sub VolumeButtonVer011_MouseUp(Button As Integer, Btn As Boolean)
- Label3.Caption = "BtnMoseUp Event (MB=" & Button & ", InBtn=" & Btn & ")"
- End Sub
- Private Sub VolumeButtonVer011_ValueChange(Value As Long)
- Label5.Caption = "VolueChange Event (Val=" & VolumeButtonVer011.Value & ")"
- ProgressBar1.Value = VolumeButtonVer011.Value + 0.0001
- End Sub
- Private Sub Option1_Click()
- VolumeButtonVer011.BtnBorder = bbNone
- VolumeButtonVer011.Top = 300
- VolumeButtonVer011.Left = 300
- End Sub
- Private Sub Option2_Click()
- VolumeButtonVer011.BtnBorder = bbSingle
- VolumeButtonVer011.Top = 150
- VolumeButtonVer011.Left = 150
- End Sub
-