Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Container - Selective GotFocus on Click/Tab
Message
 
À
03/02/2009 14:13:06
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
01379017
Message ID:
01379019
Vues:
21
>I have a container that contains a textbox and a dropdown. When the mouse is clicked over the texbox, or the container is tabbed into, I want the textbox to have the focus. When the mouse is clicked over the dropdown, I want that to have the focus. I put code originally into the container.gotfocus like this:
>
>THIS.EntryTextBox.SetFocus
>
>But that causes problems when you click over the dropdown, the textbox gets the focus, then a 2nd click allows the dropdown to get the focus. How can I make this work?

Set this form EntryTextBox And DropDown:
EntryTextBox.TabIndex = 1
DropDown.TabIndex = 2
And then you will not to worry about what control will get the focus when the user use KeyBoard to tab to Container
Remove your code from Container GotFocus event
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform