home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Object = "{98DA81CC-91CB-11D1-96FF-E86909C1A868}#10.0#0"; "ActiveCursor.ocx"
- Begin VB.Form Form1
- Caption = "Form1"
- ClientHeight = 1644
- ClientLeft = -120
- ClientTop = 276
- ClientWidth = 3684
- LinkTopic = "Form1"
- ScaleHeight = 1644
- ScaleWidth = 3684
- Begin ActiveCursor.cursorControl cursorControl1
- Left = 840
- Top = 600
- _ExtentX = 656
- _ExtentY = 656
- End
- Begin VB.CommandButton cmdCancel
- Caption = "Stop"
- Height = 372
- Left = 2520
- TabIndex = 0
- Top = 1080
- Width = 972
- End
- Begin VB.Timer Timer1
- Interval = 100
- Left = 120
- Top = 120
- End
- Begin VB.Label Label1
- Caption = "Press Enter to stop this demo"
- Height = 372
- Left = 600
- TabIndex = 1
- Top = 120
- Width = 2292
- End
- Attribute VB_Name = "Form1"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Dim curXY As POINTAPI
- Dim x, y As Long
- Private Sub cmdCancel_Click()
- End
- End Sub
- Private Sub Form_MouseDown(Button As Integer, Shift As Integer, x As Single, y As Single)
- 'cursorControl1.setVisible (false)
- Let cursorControl1.Visible = False
- End Sub
- Private Sub Form_MouseUp(Button As Integer, Shift As Integer, x As Single, y As Single)
- 'cursorControl1.setVisible (True)
- Let cursorControl1.Visible = True
- End Sub
- Private Sub Timer1_Timer()
- Debug.Print cursorControl1.getX, cursorControl1.getY
- 'cursorControl1.setX (x)
- 'cursorControl1.setY (y)
- cursorControl1.setXY x, y
- x = x + 1
- y = y + 1
- End Sub
-