Mouse Pointer

weide
04-15-2004, 02:47 AM
hi.. how do i change my mouse pointer when i move my move to certain label, txtbox, etc.. ? thanks for any help..

Azr@el
04-15-2004, 02:50 AM
setup the mouspointer and mouseicon property for those labels, textboxes etc.

weide
04-15-2004, 03:03 AM
ok thanks..

weide
04-15-2004, 03:06 AM
hmmm, i can't find the "finger" pointer like the pointer in here.. i found out that there is a custom stuff.. how do i actually make it into a finger pointer? and to add on.. how do i change the mousepointer when i click on the lbl?

Azr@el
04-15-2004, 04:23 AM
Icons and cursers are similar
search for an finger-icon, and if there is none, create one with any icon-editor.

change the mousepointer/mouseicon property in the Click()-event

weide
04-15-2004, 04:48 AM
Icons and cursers are similar
search for an finger-icon, and if there is none, create one with any icon-editor.

change the mousepointer-propert in the Click()-event


hmmm.. how do i change the mousepointer_property in the click()_event? can i have the whole command?

Azr@el
04-15-2004, 05:14 AM
YourObject.MousePointer = 99
YourObject.MouseIcon = LoadPicture(YourPath)

weide
04-15-2004, 05:16 AM
YourObject.MousePointer = 99
YourObject.MouseIcon = LoadPicture(YourPath)


ok thanks..

weide
04-15-2004, 06:01 AM
ok.. another problem..

i have timer1 which has the following code

Private Sub timer1_timer()

Timer1.Interval = 1000
Static icount As Integer
icount = icount + 1
If icount = 2 Then
lbltest.MousePointer = 2
Timer1.Enabled = False
End If

End Sub

and lbltest with the following code

Private Sub lbltest_Click()

lbltest.MousePointer = 13
Timer1.Enabled = True

end sub

when click on the lbltest.. the pointer(13) just hang there without switching to pointer(2) after 2 secs..

Diurnal
04-15-2004, 06:23 AM
Make sure your timer is disabled on startup. It may be enabled and running when you start and is already past 2 when you click on the label.

Also, I am curious about the hand mouse pointer also. Is it possible to extract it from Windows? It seems a strange to have to make one when there is one already in the operating system.

weide
04-15-2004, 06:25 AM
i am using window xp.. the mouse icons can be taken from c:\windows\cursors

Azr@el
04-15-2004, 06:37 AM
propalbly the timer's interval is 0 right?
u set it IN the timerroutine, which is not fire if interval is 0

and yes, the icons ARE within the OS, but in a dll. u'll need to extract it from there

weide
04-15-2004, 06:42 AM
ok thanks.. it works

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum