Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Tab focus for checkbox
Message
De
17/04/2015 00:25:14
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01618567
Message ID:
01618582
Vues:
50
>Hi everybody,
>
>I am wondering how to visually show that checkbox has a focus when its caption set to None. And also is there a way to check it/uncheck using keyboard?
>
>E.g. I tab from one control to another but I do not see when I land on the checkbox.
>
>Thanks in advance.

I suppose you could put an invisible button over the checkbox. It would provide the focus indicator, and the caption of the invisible button would handle the hotkey. The Click() event of the invisible button would toggle the value of the checkbox. You might also want to set the TabStop property of the checkbox to .F. to avoid the situation which could make the rectangle to become invisible when the checkbox control gets focus (focus rectangle would surround the caption text -- but if you have None for the caption text, the focus rectangle becomes essentially invisible).
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform