Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Help with artifact of combobox dropdown
Message
From
01/12/2003 15:24:59
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
01/12/2003 13:53:23
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:
00854812
Views:
25
>I have come across a solution with which I am only partially satisfied.
>
>In the form's KeyPress event, after I have determined that the combobox's dropdown is expanded, I can issue a comboboxobject.SetFocus and then change the ActivePage. Now the dropdown artifact does not appear.
>
>I am, however still left with, to borrow a phrase from another current thread, a "hanging LostFocus". Is there a better way or, in my case, am I going to be forced to accept this. Does anyone have a better solution?

Don't know if this works at all times, but you can have hot keys in the pages' captions, by simply preceding the hotkeys with the \< combination (backslash, less than). That way you wouldn't have to use form.keypress.

Another thing to try is to have a reference to each page's first object to receive focus, and so instead of switching pages (by setting frame.activepage), setfocus() to that first object on the desired page. Thus you're not simply running your code, you're raising a setfocus event, which should then fire the valid() and lostfocus() of your combo.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform