Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Drop Down List Stays Down..
Message
De
27/08/2003 12:00:47
 
 
À
27/08/2003 03:01:46
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00823695
Message ID:
00823824
Vues:
18
Hi Tim,

That is because toolbar buttons don't get the focus. Since the toolbar button doesn't get the focus, the drop down never loses the focus and remains dropped down waiting for the appropriate user input. In addition, since the drop down never lost the focus, it's value is not written to its ControlSource and will not be saved by a Tableupdate(). My framework has a method named WriteBuffer that is called by all form methods that are called by a toolbar. It essentially determines which control on the form has the focus and calls it's SetFocus method. This cause the control to write its value to its ControlSource and reset itself.

pamela
>Hi,
>
>I have the following scenario in my code I cant seem to solve.
>
>I have a form and a toolbar. When I click a drop down list it opens the drop down list on the form, then I immediately press the save or cancel button on the toolbar while the list is still open. When I do this the drop down list stays "open". The only way to get rid of it is to click on another place on the form.
>
>Anyone had this problem before?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform