Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Mouse over buttons?
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00458969
Message ID:
00459019
Views:
22
>Once again I take up my search for mouseover buttons. Ones that don't continuously fire off and not the IE button ones. Really all I want to do is have an image that changes when the mouse is over it. And by windows standards it must be able to be tabed to.
>
>I know it can be done, because the basics have been done in some Active X commands. The problem with them is they add the button border that disappears and reappears with the mouseover. Close but not quite.
>
>I'm surprised this hasn't been done yet. They are a common site in many programs just not in VFP apps it seems. Do to the graphic nature of my program I really need something like this.

Hi, Bryan.

How about making a class like this?

- Subclass the image class (or your own base class).
- In it's Init, attach it a command button with the same position and size (maybe a pixel or two smaller), and zOrder(0) it to hide it behind the image.
- Add code to the image's mouse over event and sync it with the got/lostfocus of the command button.

In theory (I haven't wrote this), you have a graphical button with all of the command button's features.

Hope this helps. Tell me if you actually implement it!
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform