Information générale
Catégorie:
Gestionnaire d'écran & Écrans
Where is your KeyPress?
Your code should work if you are in the object having your code in the KeyPress. For instance, if it is FORM.KeyPress and you are in, say, form.textbox, then sure it will not work.
>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.
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement