Re: Drop-down height in 2.9.1 off by 1 (applies to 2.9.2 also)

4 views
Skip to first unread message

Dion Whittaker

unread,
Sep 29, 2011, 3:37:56 AM9/29/11
to wx-u...@googlegroups.com
>>Could you please make the smallest possible patch against the minimal
>sample showing it?

>Apparently not. I tried to reproduce the problem with the minimal sample
>but it worked the way you would expect it to. It even worked properly with
>my little addition to the code leading me to believe that it was for some
>reason running different code.

>The real thing that tipped me off to this was the fact that my wxChoices
>don't look the same as the one I created in the minimal sample. As far as I
>could tell they were created the same way but for some reason it looks like
>the ones I use in my program are defaulting to some standard minimal-use
>look.

>Here is the minimal sample with the wxChoice vs the wxChoice in my program.
>The wxChoice from my program has 2 items in it and you can see the tiny
>arrow buttons on the right of the drop down box. Any thoughts?

I came across this old thread when I encountered the same issue.

I found cause of the difference, so in case others are experiencing the
same issue.

If you "#define wxUSE_NO_MANIFEST 1" in sample.rc and re-compile the
control sample
you see the different style wxCombo control, with the drop down height
too short by 1 item.

So the simplest solution I guess is to ensure you add an .rc file to
your project and
#include "wx/msw/wx.rc"

Regards
Dion


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

Reply all
Reply to author
Forward
0 new messages