Information générale
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Network:
Windows 2003 Server
>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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement