Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > General > Mouse Pointer


Reply
 
Thread Tools Display Modes
  #1  
Old 04-15-2004, 02:47 AM
weide weide is offline
Regular
 
Join Date: Jan 2004
Posts: 56
Default Mouse Pointer


hi.. how do i change my mouse pointer when i move my move to certain label, txtbox, etc.. ? thanks for any help..
Reply With Quote
  #2  
Old 04-15-2004, 02:50 AM
Azr@el's Avatar
Azr@el Azr@el is offline
Contributor
 
Join Date: Oct 2003
Location: Aachen, Germany
Posts: 407
Default

setup the mouspointer and mouseicon property for those labels, textboxes etc.
__________________
Join #code @ irc://irc.RandomIRC.com
My JabberID: |Azrael|@jabber.ccc.de

Last edited by Azr@el; 04-15-2004 at 05:13 AM.
Reply With Quote
  #3  
Old 04-15-2004, 03:03 AM
weide weide is offline
Regular
 
Join Date: Jan 2004
Posts: 56
Default

ok thanks..
Reply With Quote
  #4  
Old 04-15-2004, 03:06 AM
weide weide is offline
Regular
 
Join Date: Jan 2004
Posts: 56
Default

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?

Last edited by weide; 04-15-2004 at 03:12 AM.
Reply With Quote
  #5  
Old 04-15-2004, 04:23 AM
Azr@el's Avatar
Azr@el Azr@el is offline
Contributor
 
Join Date: Oct 2003
Location: Aachen, Germany
Posts: 407
Default

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
__________________
Join #code @ irc://irc.RandomIRC.com
My JabberID: |Azrael|@jabber.ccc.de

Last edited by Azr@el; 04-15-2004 at 05:13 AM.
Reply With Quote
  #6  
Old 04-15-2004, 04:48 AM
weide weide is offline
Regular
 
Join Date: Jan 2004
Posts: 56
Default

Quote:
Originally Posted by Azr@el
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?
Reply With Quote
  #7  
Old 04-15-2004, 05:14 AM
Azr@el's Avatar
Azr@el Azr@el is offline
Contributor
 
Join Date: Oct 2003
Location: Aachen, Germany
Posts: 407
Default

YourObject.MousePointer = 99
YourObject.MouseIcon = LoadPicture(YourPath)
__________________
Join #code @ irc://irc.RandomIRC.com
My JabberID: |Azrael|@jabber.ccc.de
Reply With Quote
  #8  
Old 04-15-2004, 05:16 AM
weide weide is offline
Regular
 
Join Date: Jan 2004
Posts: 56
Default

Quote:
Originally Posted by Azr@el
YourObject.MousePointer = 99
YourObject.MouseIcon = LoadPicture(YourPath)

ok thanks..
Reply With Quote
  #9  
Old 04-15-2004, 06:01 AM
weide weide is offline
Regular
 
Join Date: Jan 2004
Posts: 56
Default

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..
Reply With Quote
  #10  
Old 04-15-2004, 06:23 AM
Diurnal Diurnal is offline
Enthusiast

Retired Leader
* Expert *
 
Join Date: Apr 2002
Location: Bellevue, WA.
Posts: 3,233
Default

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.
Reply With Quote
  #11  
Old 04-15-2004, 06:25 AM
weide weide is offline
Regular
 
Join Date: Jan 2004
Posts: 56
Default

i am using window xp.. the mouse icons can be taken from c:\windows\cursors
Reply With Quote
  #12  
Old 04-15-2004, 06:37 AM
Azr@el's Avatar
Azr@el Azr@el is offline
Contributor
 
Join Date: Oct 2003
Location: Aachen, Germany
Posts: 407
Default

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
__________________
Join #code @ irc://irc.RandomIRC.com
My JabberID: |Azrael|@jabber.ccc.de
Reply With Quote
  #13  
Old 04-15-2004, 06:42 AM
weide weide is offline
Regular
 
Join Date: Jan 2004
Posts: 56
Default

ok thanks.. it works
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Hide mouse pointer regardless of focus markmeikle Interface and Graphics 1 01-06-2004 12:24 PM
DX8 and Z buffer with 3d meshes and 2D mouse pointer XwillybabyX DirectX 4 10-21-2003 02:36 AM
Controlling the Mouse Pointer mms General 3 11-19-2002 06:56 AM
mouse down / mouse up xmen64 Interface and Graphics 5 10-09-2002 10:36 AM
How can I change the Mouse Pointer Icon ? KcnarfsLord Word, PowerPoint, Outlook, and Other Office Products 1 08-21-2002 07:42 AM

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->