Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Drop Down List Stays Down..
Message
From
27/08/2003 12:00:47
 
 
To
27/08/2003 03:01:46
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00823695
Message ID:
00823824
Views:
19
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?
Previous
Reply
Map
View

Click here to load this message in the networking platform