Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Arrow Key Trapping in ComboBox
Message
 
 
À
03/09/1999 17:10:15
Paul Rec
Integration Engineering
Hampton Roads, Virginie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00261393
Message ID:
00261415
Vues:
22
Paul,

You should issua a NODEFAULT inside the cbo.KeyPress if you want to conditionally prevent the normal behavior.
if ( nKeyCode = ??? )
   skip 1
   nodefault
endif
>Comboboxes in grids respond to an up/down arrow keypress by changing the value of the combobox. An end user of mine does not like this "feature." Instead she wants to be able to navigate up/down through a grid's records when a combobox has the focus within the grid. However, if the list portion of the combobox is displayed (from a spacebar keypress or down arrow click), up/down arrows should function normally.
>
>I have tried using the dropdown and keypress events to no avail. Two problems arise:
>
>1) If I skip to the next record, the keypress is interpreted in the next record's combobox, changing the next record's value (CLEAR TYPEAHEAD does not work).
>
>2) I cannot consistently keep track of a combobox's "ListIsDisplayed" value. There is a DropDown event, but no complimentary "DropUp" event.
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