Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Container - Selective GotFocus on Click/Tab
Message
De
04/02/2009 07:14:10
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
 
 
À
03/02/2009 15:29:43
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
01379017
Message ID:
01379156
Vues:
16
>Seems to me that it's as easy as setting the tab order of the container. If the textbox is before the dropdown, it will get focus when you tab.
>
>>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?

It is, and that's what I thought would happen, but for some reason another control in the container is getting the focus. It's actually a fairly complicated class, but I can't seem to find anything changing the Tab Order. Is there anything else that could affect the order coming into a container of controls?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform