Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Slick trick for a command button
Message
De
07/11/2005 10:43:46
 
 
À
04/11/2005 13:07:24
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01065541
Message ID:
01065986
Vues:
22
>For a command button
>
>Mouse Enter
>
>LPARAMETERS nButton, nShift, nXCoord, nYCoord
>this.caption = "Some text"
>
>Mouse leave
>
>LPARAMETERS nButton, nShift, nXCoord, nYCoord
>this.caption = ""
>
>Create and place a jpg the size of the button, over the button. I use a gradient fill in the jpg.
>
>When the mouse passes over the jpg, it will raise like an eyelid and expose the text on the button for clicking.

Hi Grady

As per your code above, you place this in the Mouse Enter/Leave of the button and then place a JPG OVER the button.

In that case the Mouse Enter and Leave of the button would never be fired,since the JPG is sitting over the button and its Mouse events would fire.

Have you left out something or am I missing something?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform