Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Down arrow key and selecting a ListBox
Message
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00879967
Message ID:
00880087
Vues:
34
Steve,

You should avoid using Messagebox() or wait windows to display this sort of thing because they can interfere with event sequences. Use the debug output window along with debugout commands.

Are you wanting a down arrow keypress in a normal VFP textbox to instead activate a listbox?

If so you need to use a NODEFAULT to prevent the default handling of the key by the VFP baseclass.

>How can I select a listbox myList1 when user presses the down arrow key? Should the
>following work??
>Thanks
>STeve Elster
>
>proc KeyPress
>if nKeyCode = 24
> messagebox("pressed down arrow key")
> thisForm.myList1.listIndex= thisForm.mYlist1.Top
> thisform.myList1.setFocus()
> thisform.myList1.click()
>endif
>return .t.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform