Change mouse pointer to a hand

G

Guest

Is there code to change the mouse pointer from an arrow to a hand (like when
you mouse over a hyperlink)?
 
R

Rick Brandt

Dylan Moran said:
Is there code to change the mouse pointer from an arrow to a hand (like when
you mouse over a hyperlink)?

If the object you hover over has a Hyperlink address property you can enter a
space in that property and it will give you the "pointing finger" icon
automatically.
 
G

Guest

Sorry guys, I searched but didn't originally find any threads, but changed
search criteria and found this post from Dirk.
Copy the code from

http://www.mvps.org/access/api/api0044.htm

into a standard module. Then put the statement

MouseCursor IDC_HAND

in the event procedure for the control's MouseMove event, or just set
its OnMouseMove property to this expression:

=MouseCursor(32649)
 
D

Dirk Goldgar

Rick Brandt said:
If the object you hover over has a Hyperlink address property you can
enter a space in that property and it will give you the "pointing
finger" icon automatically.

The only thing I don't like about that technique is that, if you hover
long enough, a blank controltip will appear -- unless you've set the
ControlTipText property to something else, that is.
 
R

Rick Brandt

Dirk Goldgar said:
The only thing I don't like about that technique is that, if you hover
long enough, a blank controltip will appear -- unless you've set the
ControlTipText property to something else, that is.

Hmmm, is this another "improvement" in the newer versions? I can't make that
happen in Access 97
 
D

Dirk Goldgar

Rick Brandt said:
Hmmm, is this another "improvement" in the newer versions? I can't
make that happen in Access 97

That appears to be the case. I just tried it in Access 97 -- no
controltip. I tried it in Access 2000 and 2002 -- the blank controltip
appears.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top