Click to See Complete Forum and Search --> : CComboBox problems


April 2nd, 1999, 11:06 AM
This seems to be a simple problem, but I can't figure it out. Any help would be greatly appreciated.

I need a few CComboBox controls on a form. I can add them just fine, change their properties and add entries to them from the form, but when I am actually running the application, the combo box will not drop down.. It acts as though it's dropping down, but the height of the list is 1 or so. All I see is a black line below the control. I can set focus to the control and scroll through the items using the arrow keys, but the dropdown doesn't work.

I've had the same problem on 2 different computers. I'm running VC++ 6.0 on Win98 and the same on Win95. Thanks in advance!

April 2nd, 1999, 11:12 AM
You can try under Styles (in the visual editor of that control) checking the "No integral height". It sounds more like you just haven't expanded the box enough in the visual editor. Try going to the editor, click on the box, then click on the box's little arrow scroll. That'll make the box show it's maximum height. Expand it as you wish.

Mayhem
April 2nd, 1999, 12:02 PM
Thanks alot for your help.. I had no idea you could set the dimensions of the drop box in the editor. I looked for a property field with no luck. I also tried sizing the control itself, but it had a fixed height. Never thought to click on the drop buton! Appreciate your help...

-Mayhem

April 2nd, 1999, 01:40 PM
You're welcome! Glad to know it helped...

Murray Bilker
April 3rd, 1999, 07:59 PM
I think you have a simple problem. In the dialog editor click on the drop down button portion of the control. Then drag the drop down window to the size you want.

Murray Bilker murray@philalock.com
Philadelphia Locking Systems Corp