Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Change Caption in a Label
Message
From
18/01/2005 09:53:14
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00978069
Message ID:
00978074
Views:
44
>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)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform