Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Arrow Key Trapping in ComboBox
Message
 
 
To
03/09/1999 17:10:15
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00261393
Message ID:
00261415
Views:
24
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform