Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combo box in grid
Message
From
08/10/1997 00:20:34
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00053230
Message ID:
00053638
Views:
24
>>I am using a combobox in a grid as Drop-down List. When the combo box is >>selected, pressing UP and DOWN keystrokes just changing list selection. >>My users don't like this feature. They would like to go to the next/prior >>record in a grid in case of UP or DOWN keystrokes being pressed. >>If the SPACEBAR is pressed, UP and DOWN keystrokes should be used to make >>a selection. >> >>May be there is some work around. >> >>Thanks. >> >>By the way, VFP Web Site was not updated after September 17, which is >>very strange. > >Use the KeyPress event to trap the key strokes to create the behavior you want. It's a bit tricky with combo boxes as you have to know whether the pop-up list is displayed or not. For example, if the list is "popped" a down arrow should move to the next selection in the list, whereas if it isn't popped, you want to move to the next record in the grid. But it can be done. HTH. > >- Mark I decided to use Drop Down combo. I modifed some behavier: if the user enters the valid value, it is accepted and the next cell is activated. If there is not a full match, the closest match is displayed in combo and it still has a focus. This value can be accepted or the Pop-up list can be activated. With Up and Down key strokes next or prior record is activated which is godd. Users like this behavior, but it is not clear yet how to display the pop-up list with keyboard without using mouse. May be somebody has a clue? No day without headache. Alex.
Alex Golovan,
Consultant - Development,
GTE Enterprise Solutions
Previous
Reply
Map
View

Click here to load this message in the networking platform