-
September 29th, 2011, 08:56 PM
#1
How do you dropdown a Combo Box when clicked?
I have a dropdown combo box on a dialog. Of course, clicking on the dropdown "arrow", the dropdown list opens as it should. If you click on the actual text in the dropdown BEFORE it dropsdown, the text just highlights. How can we force the combo to drop down (open) when the displayed text is clicked on?
Thanks ahead of time....
-
September 29th, 2011, 11:28 PM
#2
Re: How do you dropdown a Combo Box when clicked?
Trap for the CBN_SETFOCUS message then send a CB_SHOWDROPDOWN message to the combo box.
Jim
ATP BE400 CE500 (C550B-SPW) CE560XL MU300 CFI CFII
"The speed of non working code is irrelevant"... Of course that is just my opinion, I could be wrong.
"Nothing in the world can take the place of persistence. Talent will not; nothing is more common than unsuccessful men with talent. Genius will not; unrewarded genius is almost a proverb. Education will not; the world is full of educated derelicts. Persistence and determination are omnipotent. The slogan 'press on' has solved and always will solve the problems of the human race."...Calvin Coolidge 30th President of the USA.
-
September 30th, 2011, 02:14 AM
#3
Re: How do you dropdown a Combo Box when clicked?
... or if MFC is used, the CComboBox::ShowDropDown can be used
Victor Nijegorodov
-
September 30th, 2011, 03:15 AM
#4
Re: How do you dropdown a Combo Box when clicked?
If you click on the actual text in the dropdown BEFORE it dropsdown, the text just highlights. How can we force the combo to drop down (open) when the displayed text is clicked on?
This is normal behavior for Dropdown combo (CBS_DROPDOWN). You may try to change the combo style to Drop List (CBS_DROPDOWNLIST) unless you still need the text to remain selectable.
Combo-Box Styles
Best regards,
Igor
-
October 2nd, 2011, 10:27 AM
#5
Re: How do you dropdown a Combo Box when clicked?
Originally Posted by Igor Vartanov
This is normal behavior for Dropdown combo (CBS_DROPDOWN). You may try to change the combo style to Drop List (CBS_DROPDOWNLIST) unless you still need the text to remain selectable.
Combo-Box Styles
Crap!! I didn't catch that!! That was it. Sometimes the obvious is overlooked. Thank You.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|