Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MouseMoveEvent on a command button
Message
 
À
25/03/2002 01:42:29
Henry Ravichander
RC Management Systems Inc.
Saskatchewan, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00636703
Message ID:
00636729
Vues:
18
Hi,

>In order to get the user's attention, I would like to change the color of the command button from grey to, say yellow, and then back to gray as soon as the user moves the mouse away from the command button (base class).

As Sebastian already suggested, you could use the MouseEnter/MouseLeave events. One downside of these events is, that the MouseLeave event doesn't fire in any case.

Sometimes, when the mouse is moved out of the control, the event isn't executed. You can work around this by using MouseMove or Mouse Enter together with a timer. See thread #633131 for details.

Regards,
Armin

Armin Neudert
Regional Director (Stuttgart) of German FoxPro User Group dFPUG

MCP for Visual FoxPro

Expert/Editor of the VFP section in the German Codezone community portal
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform