Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can a VFP button have MouseOver behavior?
Message
From
18/01/2008 10:54:43
 
 
To
17/01/2008 22:06:03
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01282796
Message ID:
01282981
Views:
19
This message has been marked as a message which has helped to the initial question of the thread.
>>I want a larger image to "float" over a VFP button when the mouse is moved over it. Can this be done?
>
>I was able to do this by using the MouseEnter and MouseLeave events of the button. Storing the current button properties to form properties and setting new button props on the Enter, then setting them back on the Leave seems to work well. I also expand the button so it looks like it's popping out at you a little.
>
>Plus, I used a larger image and with setting zOrder() the buttons look really sharp, each one getting slightly large and in front of the other buttons when the mouse is moved over it.

I would create a custom class based on the commandbutton and then add the properties you defined on the form to this custom class. Then add the code to the MouseEnter and MouseLeave events. Then you have class that can be reused.
Previous
Reply
Map
View

Click here to load this message in the networking platform