home *** CD-ROM | disk | FTP | other *** search
- VERSION 4.00
- Begin VB.Form w_misc_demo
- BackColor = &H00C0C0C0&
- BorderStyle = 1 'Fixed Single
- Caption = "Miscellaneous Controls"
- ClientHeight = 5940
- ClientLeft = 1140
- ClientTop = 1515
- ClientWidth = 8280
- Height = 6345
- Left = 1080
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MDIChild = -1 'True
- MinButton = 0 'False
- ScaleHeight = 5940
- ScaleWidth = 8280
- Top = 1170
- Width = 8400
- Begin VB.TextBox Text2
- Height = 315
- Left = 4620
- TabIndex = 20
- Text = "Stop Sign"
- Top = 3720
- Width = 1575
- End
- Begin VB.TextBox Text1
- Height = 375
- Left = 6600
- TabIndex = 18
- Text = "0"
- Top = 3300
- Width = 615
- End
- Begin VB.HScrollBar HScroll1
- Height = 255
- Left = 180
- Max = 24
- Min = 1
- TabIndex = 13
- Top = 4560
- Value = 1
- Width = 3495
- End
- Begin VB.CommandButton Command1
- Caption = "E&xit"
- Height = 375
- Left = 6840
- TabIndex = 4
- Top = 5400
- Width = 1095
- End
- Begin VB.Label Label9
- Alignment = 2 'Center
- Caption = $"ct_misc.frx":0000
- ForeColor = &H00800000&
- Height = 855
- Left = 4560
- TabIndex = 19
- Top = 4260
- Width = 3435
- End
- Begin VB.Label Label8
- Alignment = 2 'Center
- Caption = $"ct_misc.frx":00BA
- ForeColor = &H00800000&
- Height = 1455
- Left = 4440
- TabIndex = 17
- Top = 1200
- Width = 3675
- End
- Begin TextLib.ctText ctText1
- Height = 315
- Left = 5580
- TabIndex = 16
- Top = 660
- Width = 1335
- _version = 65536
- _extentx = 2355
- _extenty = 556
- _stockprops = 70
- backcolor = 16777215
- textxoffset = 3
- picture = "ct_misc.frx":0202
- End
- Begin DataLib.ctData ctData2
- Height = 315
- Left = 6900
- TabIndex = 15
- Top = 660
- Width = 975
- _version = 65536
- _extentx = 1720
- _extenty = 556
- _stockprops = 64
- pictureleft = "ct_misc.frx":021E
- picturecenter = "ct_misc.frx":023A
- pictureright = "ct_misc.frx":0256
- style = 1
- End
- Begin VB.Label Label7
- Alignment = 2 'Center
- Caption = $"ct_misc.frx":0272
- ForeColor = &H00800000&
- Height = 855
- Left = 180
- TabIndex = 14
- Top = 4920
- Width = 3495
- End
- Begin VB.Image Image1
- Height = 1080
- Left = 180
- Picture = "ct_misc.frx":0332
- Top = 3300
- Width = 1800
- End
- Begin VB.Label Label6
- Caption = "ctClip : Picture Clip Control"
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 0
- weight = 700
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- Height = 255
- Left = 180
- TabIndex = 12
- Top = 2880
- Width = 2355
- End
- Begin ClipLibCtl.ctClip ctClip1
- Height = 270
- Left = 2820
- TabIndex = 11
- Top = 3660
- Width = 300
- _version = 65536
- _extentx = 529
- _extenty = 476
- _stockprops = 65
- piccols = 6
- picrows = 4
- picture = "ct_misc.frx":1494
- End
- Begin VB.Label Label5
- Alignment = 2 'Center
- Caption = $"ct_misc.frx":7A26
- ForeColor = &H00800000&
- Height = 1035
- Left = 120
- TabIndex = 10
- Top = 1560
- Width = 3315
- End
- Begin VB.Label Label4
- Caption = "ctDATA : Data Navigation Butons"
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 0
- weight = 700
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- Height = 375
- Left = 4620
- TabIndex = 9
- Top = 210
- Width = 3255
- End
- Begin VB.Label Label2
- Caption = "ctSPIN : Spin Button Control"
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 0
- weight = 700
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- Height = 285
- Left = 4620
- TabIndex = 8
- Top = 2880
- Width = 2595
- End
- Begin DataLib.ctData ctData1
- Height = 315
- Left = 4620
- TabIndex = 7
- Top = 660
- Width = 975
- _version = 65536
- _extentx = 1720
- _extenty = 556
- _stockprops = 64
- End
- Begin SpinLib.ctSpin ctSpin2
- Height = 285
- Left = 4680
- TabIndex = 6
- Top = 3300
- Width = 675
- _version = 65536
- _extentx = 1191
- _extenty = 503
- _stockprops = 64
- repeatrate = 4
- spinstyle = 1
- End
- Begin SpinLib.ctSpin ctSpin1
- Height = 375
- Left = 7200
- TabIndex = 5
- Top = 3300
- Width = 195
- _version = 65536
- _extentx = 344
- _extenty = 661
- _stockprops = 64
- bevelsize = 1
- End
- Begin VB.Label Label3
- Caption = "ctDIAL : Dial Control"
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 0
- weight = 700
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- Height = 285
- Left = 300
- TabIndex = 3
- Top = 180
- Width = 1875
- End
- Begin VB.Label Lbl_Dial
- Alignment = 2 'Center
- BackColor = &H00FFFFFF&
- BorderStyle = 1 'Fixed Single
- Caption = "0"
- Height = 285
- Left = 1920
- TabIndex = 2
- Top = 900
- Width = 495
- End
- Begin VB.Label Label1
- Caption = "Value :"
- Height = 285
- Left = 1200
- TabIndex = 1
- Top = 900
- Width = 615
- End
- Begin DialLib.ctDial ctDial1
- Height = 735
- Left = 240
- TabIndex = 0
- Top = 630
- Width = 855
- _version = 65536
- _extentx = 1508
- _extenty = 1296
- _stockprops = 64
- End
- Attribute VB_Name = "w_misc_demo"
- Attribute VB_Creatable = False
- Attribute VB_Exposed = False
- Dim nSpin As Integer
- Dim nArray As Integer
- Dim cString(12) As String
- Private Sub Command1_Click()
- Unload w_misc_demo
- End Sub
- Private Sub ctData1_MouseCenter()
- ctText1.Caption = "Last Page"
- End Sub
- Private Sub ctData1_MouseLeft()
- ctText1.Caption = "Top of File"
- End Sub
- Private Sub ctData1_MouseRight()
- ctText1.Caption = "Last Record"
- End Sub
- Private Sub ctData2_MouseCenter()
- ctText1.Caption = "Next Page"
- End Sub
- Private Sub ctData2_MouseLeft()
- ctText1.Caption = "Next Record"
- End Sub
- Private Sub ctData2_MouseRight()
- ctText1.Caption = "End of File"
- End Sub
- Private Sub ctDial1_DialChange(nValue As Integer)
- Lbl_Dial.Caption = Str(nValue)
- End Sub
- Private Sub ctSpin1_Click(nButton As Integer)
- If nButton = 0 Then
- nSpin = nSpin + 1
- Else
- nSpin = nSpin - 1
- End If
- Text1.Text = Str(nSpin)
- End Sub
- Private Sub ctSpin2_Click(nButton As Integer)
- If (nButton = 1) Then
- If (nArray < 12) Then
- nArray = nArray + 1
- End If
- Else
- If (nArray > 1) Then
- nArray = nArray - 1
- End If
- End If
- Text2.Text = cString(nArray)
- End Sub
- Private Sub Form_Load()
- ' Center the window on the screen
- Move (Screen.Width - Width) / 2, (Screen.Height - Height) * 0.25
- nSpin = 0
- nArray = 1
- cString(1) = "Stop Sign"
- cString(2) = "Happy Face"
- cString(3) = "Empty Diamond"
- cString(4) = "Blue Diamond"
- cString(5) = "Empty Box"
- cString(6) = "Cross Box"
- cString(7) = "Green Start"
- cString(8) = "Previous Page"
- cString(9) = "Last Record"
- cString(10) = "Next Record"
- cString(11) = "Next Page"
- cString(12) = "Green End"
- End Sub
- Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
- If (ctText1.Caption <> "") Then
- ctText1.Caption = ""
- End If
- End Sub
- Private Sub HScroll1_Change()
- ctClip1.ActivePicture = HScroll1.Value
- End Sub
- Private Sub HScroll1_Scroll()
- ctClip1.ActivePicture = HScroll1.Value
- End Sub
-