Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Help with artifact of combobox dropdown
Message
From
27/11/2003 08:41:03
 
 
To
26/11/2003 17:31:20
Spencer Redfield
Managed Healthcare Northwest, Inc.
Portland, Oregon, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00853906
Message ID:
00854003
Views:
19
>Here is the essential issue:
>In a form's KeyPress event I have code that moves the focus from one page of a PageFrame to the next page. So far so good.
>
>My problem:
>If, however, a combobox's dropdown is expanded, then the dropdown remains as an "artifact" and still visible on the new page.
>
>I already have code in place that, prior to the page change, determines whether or not the dropdown is expanded. What I lack is the ability to programmatically close/remove the dropdown before changing the page. I have already tried .Refresh and keyboarding "{enter}", etc.
>
>I would sure appreciate a solution from anyone who has successfully dealt with this.
>
>
Hello Spencer;

If your combobox is expanded.. you have the focus on it.. so, on the lostfocus method you can try some dodefault.. and/or keyboard chr(13).. and/or this.visible=.f.

you know.. some try, to deal with this behavior..


HTH


Claudio
"Now to him who is able to do immeasurably more than all we ask or imagine, according to his power that is at work within us, Ephesians 3:20
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform