Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Change Caption in a Label
Message
De
18/01/2005 09:53:14
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
00978069
Message ID:
00978074
Vues:
42
>I am trying to do a change in the label that provides information in English. I want the caption to change to a Spanish translation if the user passes over the label. I have tried Click and DBLClick, but it does not work.

Click() only occurs if you press, and release, the mouse button.

To detect whether the user only moves the mouse over an object, you can use MouseMove().

I am testing with VFP6; in later versions, there is something like MouseEnter() and MouseLeave() (???).

However, I would suggest the following, simpler, solution:

Just assign a ToolTipText property, or, better, a StatusBarText property. I prefer StatusBarText, because once the user knows what an object is about, having ToolTipTexts popping up all over the place will be quite intrusive.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform