[wxMSW,wxGTK] wxChoice, height of dropdown list
Carsten A. Arnholm
arnholm at offline.no
Thu Dec 20 13:59:06 PST 2007
Vadim Zeitlin wrote:
> On Sun, 16 Dec 2007 00:52:14 +0100 "Carsten A. Arnholm"
> <arnholm at offline.no> wrote:
>
>> Is there a way to specify the max height of the wxChoice drop-down
>> list, independent of the number of contained entries?
>
> No, there is nothing for this currently. Under MSW we could implement
> such function but I'm not sure if it can be done in wxGTK at all.
Hi again,
I have been playing with the idea of creating another control, almost
identical to wxChoice, but it would always use a wxListBox as the drop down,
so that the height of the drop down could be managed on any platform (using
wxListBox::SetSize)
I was thinking the new control could inherit from wxChoice and create a
wxListBox on top of other windows in a handler for wxEVT_LEFT_DOWN.
Would this be a bad idea? Or maybe it has been done before?
--
Carsten A. Arnholm
http://arnholm.org/
N59.776 E10.457
More information about the wx-users
mailing list