Mouse Over Highlight

A

aubrey

Good Morning All,

I have a bitmap image that i have inserted into my form and added an onclick
procedure to. Is there a way to highlight that image when my mouse move over
it; similar to command buttons.

Thanks in advance for any help,
 
D

Dorian

No you cannot highlight an image, you will need a second image to replace the
first when the mouseover occurs.
-- Dorian
"Give someone a fish and they eat for a day; teach someone to fish and they
eat for a lifetime".
 
A

aubrey

Hi Dorian,

Is there a way to run a "mouseover" procedure. I see mousedown/move/up, but
not mouse over.

Aubrey,
 
D

Dirk Goldgar

aubrey said:
Is there a way to run a "mouseover" procedure. I see mousedown/move/up,
but
not mouse over.


MouseMove is the equivalent of MouseOver. Note that the MouseMove event
will fire whenever the mouse is moved over the control, even if it's already
over it, so your highlighting code for the event would do well to set a flag
so it can tell whether the mouse was already over the control. Also you
need to use the MouseMove event of the surrounding section or control to
reset the highlighting. This can sometimes be problematic for controls on
the edge of the form.
 

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

Top