combo box has no list box 
Author Message
 combo box has no list box

Brain cramp #1423:

This sounds like a "duh!" problem, but the answer eludes me so far.

I have a combo box on a CPropertyPage.  I have loaded it with desired
items both in the resource editor and in OnInitDialog.  (Using just the
resource editor didn't work.)  (It just occurred to me that I haven't
tested the dialog template.)

I cannot drop-down the list box to see the available selections, or
select with the lbutton.  I can select the edit control and use the
arrows to move through the control's items and thereby select one, but
that doesn't cut it.

Why can't I get my list box to pop-down?

--
Lynn Wallace                           http://www.*-*-*.com/ ~lawall
Be patient!  It took us forty million years for us to develop a thumb.
 It'll probably take us forty million years to get it out of our ass.



Tue, 09 Jul 2002 03:00:00 GMT  
 combo box has no list box
You list portion has a negligible height. In resource editor, click on drop
down arrow and then resize the bounding rectangle. You can then test it in
the editor itself to see how it looks.

--
Ajay Kalra

Microsoft VC++/MFC MVP

Note: Please post all replies to newsgroup only.


Quote:
> Brain cramp #1423:

> This sounds like a "duh!" problem, but the answer eludes me so far.

> I have a combo box on a CPropertyPage.  I have loaded it with desired
> items both in the resource editor and in OnInitDialog.  (Using just the
> resource editor didn't work.)  (It just occurred to me that I haven't
> tested the dialog template.)

> I cannot drop-down the list box to see the available selections, or
> select with the lbutton.  I can select the edit control and use the
> arrows to move through the control's items and thereby select one, but
> that doesn't cut it.

> Why can't I get my list box to pop-down?

> --
> Lynn Wallace                          http://www.xmission.com/~lawall
> Be patient!  It took us forty million years for us to develop a thumb.
>  It'll probably take us forty million years to get it out of our ass.



Tue, 09 Jul 2002 03:00:00 GMT  
 combo box has no list box
This is a common error.  In your resource editor, you probably didn't size the
dropdown portion to be any taller than the control's edit portion.  Click the
down arrow in the editor, and drag the drop list portion to the desired height.


Wed, 10 Jul 2002 03:00:00 GMT  
 combo box has no list box

Quote:

> You list portion has a negligible height. In resource editor, click on drop
> down arrow and then resize the bounding rectangle. You can then test it in
> the editor itself to see how it looks.

Thanks.  I DID try to re-size the control, but using the handles around
the edit control.  It didn't seem to let me grab a vertical one.  I'll
try it again after clicking the drop-down.

--
Lynn Wallace                          http://www.xmission.com/~lawall
Be patient!  It took us forty million years for us to develop a thumb.
 It'll probably take us forty million years to get it out of our ass.



Wed, 10 Jul 2002 03:00:00 GMT  
 combo box has no list box
As several others pointed out, you didn't set the height. Since I find
doing this in the dialog editor ugly and always unsatisfactory, I
invented my own CComboBox-derived class which always adjusts its
height on the fly. You can download this from my MVP Tips site.
                                joe



Quote:
>Brain cramp #1423:

>This sounds like a "duh!" problem, but the answer eludes me so far.

>I have a combo box on a CPropertyPage.  I have loaded it with desired
>items both in the resource editor and in OnInitDialog.  (Using just the
>resource editor didn't work.)  (It just occurred to me that I haven't
>tested the dialog template.)

>I cannot drop-down the list box to see the available selections, or
>select with the lbutton.  I can select the edit control and use the
>arrows to move through the control's items and thereby select one, but
>that doesn't cut it.

>Why can't I get my list box to pop-down?

Joseph M. Newcomer [MVP]

Web: http://www3.pgh.net/~newcomer
MVP Tips: http://www3.pgh.net/~newcomer/mvp_tips.htm


Wed, 10 Jul 2002 03:00:00 GMT  
 
 [ 5 post ] 

 Relevant Pages 

1. List with columns containing both text and combo boxes / check boxes

2. Combo box in List box

3. Setting the hight of a list in a combo box (Drop Down List)

4. Setting the hight of a list in a combo box (Drop Down List)

5. Setting the hight of a list in a combo box (Drop Down List)

6. CFindReplaceDialog,search box ->combo box

7. Add Combo Box to Dialog Box

8. Add a combo box in a dialog box...

9. No dropdown-box in a combo-box possible?

10. graying out edit boxes/combo boxes

11. ItemData in List and Combo Boxes?

12. combo box in a list or grid cell?

 

 
Powered by phpBB® Forum Software