Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Standard 'hand' icon

Status
Not open for further replies.

robdon

Programmer
May 21, 2001
252
ES
Hi,

I would like to use the 'standard' mouse cursor hand. The one that is displayed over hyperlinks for example.

I know I could find the icon on the net or grab it with a paint prog, but that is not what I want.

The hand cursor is different on different os (ie win98,Xp) and I would like to use the correct one.

A bit like the cursors for Arrow,Cross & I-Beam etc.

Is this possible?

Thanks,

Rob Donovan.
 
Hi,

Check out the cursors in the following folder:

C:\WINDOWS\CURSORS..

There are many cursors here. I found the HAND-L.cur and the HAND-M.cur are the closest to what you want..

Check them out..

Hope this helps..

Cheers,

Renegade..


BULLET-PROOF DESiGNZ
renegade@tiscali.co.uk
 
Checkout Common\Graphics\Cursors folder in Microsoft Visual Studio directory. You will find cursors of your interest.
 
Hi,

Thats not really what I want.

I dont want to specify the 'actual' image.

I just want to specifiy that I want the 'system' hand graphic (whatever graphic it might be set to)... like you can do with Arrow,Cross,I-Beam,Size.

If I specify a certain graphic, then if people change their 'themes' to use different cursors and icons, then it wont change...

Or is this not possible?

Thanks,

Rob D.
 
my understanding of mouse cursors is that:

if you specify a custom cursor it is part of the package, the problem comes if you want a multiplicity of custom cusors. I assume the solution is to carry the cursors in a known location as part of the package and change the appropriate property to that curor file (probably in AppPath). I seem to remember seeing one such in my perusal of an object's properties. But this is only a starting point for how I was going to do it when I came to that point (not yet).
 

Perhaps

Private Sub Command1_Click()
Me.MousePointer = vbHourglass
End Sub

Private Sub Command2_Click()
Me.MousePointer = vbDefault
End Sub

or wherever you wish to change mouse

May be what you want
 
Ive had a quick look, I cant see any way using just VB, there's no way to choose the 'link select' mousepointer.

Extract from MSDN on the subject

"Now you just need to make the Image control look "Internet-ready." Familiar visual cues, such as the mouse cursor changing into the familiar hand icon, let people know that if they click on an icon, their Web browser will launch and redirect to the intended site. Change the MousePointer property to 99 - Custom, and change the MouseIcon property to the cursor icon you want. When the user moves the mouse over the Image control, the cursor changes to a hand icon to indicate the image is associated with a Web page. You can also use this code to make a standard Label control appear and function like a hyperlink"

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top