Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Help with artifact of combobox dropdown
Message
De
01/12/2003 15:24:59
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
01/12/2003 13:53:23
Spencer Redfield
Managed Healthcare Northwest, Inc.
Portland, Oregon, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00853906
Message ID:
00854812
Vues:
24
>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform