matt_1ca Level: Scholar
 Registered: 27-03-2005 Posts: 42
|
Keeping Combo Box Dropped Down Even When Programmatically Scrolling
Wondering if someone knows how to keep the list portion of a combo box kept shown
while the user types to wit:
1.PgUP
2.PgDn
3.Home
4.End
5.Arrow Up
6.Arrow down keys
Currently I have no problem trying to make it show up by doing CB_SHOWDROPDOWN
and programmatically scrolling through it anyway I like using CB_SETTOPINDEX.
The problem comes when I try to keep it dropped down so that user can see the
entire list while he presses the keyboard to scroll up or down the list portion
of the combobox.
Since I have placed my code in the KeyDown event of my combo box the only way
right now for me to trigger the API calls I mentioned above is if the combo box
receives focus using setFocus.
Everytime I do a mycomboBox.setfocus, the dropped down list disappears and I have
to call CB_SHOWDROPDOWN and Setfocus everytime I do any of the six keyboard presses
I mentioned above.
I am trying to solve it but I do not know if I am getting any closer or going around
in circles. Or if the solutions I imagine right now will end up in a stalemate
at the end.
All suggestions welcome and thank you so much for all the kind help you can give.
Gratefully,
Matt
|