[wxMSW,wxGTK] wxChoice, height of dropdown list

[wxMSW,wxGTK] wxChoice, height of dropdown list

Post by vadi » Wed, 19 Dec 2007 20:16:51



CAA> Is there a way to specify the max height of the wxChoice drop-down list,
CAA> 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.

Regards,
VZ

--
TT-Solutions: wxWidgets consultancy and technical support
http://www.yqcomputer.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: XXXX@XXXXX.COM
For additional commands, e-mail: XXXX@XXXXX.COM
 
 
 

[wxMSW,wxGTK] wxChoice, height of dropdown list

Post by Carsten A. » Thu, 20 Dec 2007 04:31:50


Ok, thanks Vadim.

I have an example with 88 single alternatives to choose from (the
constellations in the sky). It is not very pretty, in particular not in
wxGTK where the height seems to be limited only by the total screen height
(on Windows it is less extreme, but still too high). So maybe I will have to
figure out an alternative, but I am not sure what it should be.

Regards
Carsten A. Arnholm
http://www.yqcomputer.com/
N59.776 E10.457

 
 
 

[wxMSW,wxGTK] wxChoice, height of dropdown list

Post by Carsten A. » Sat, 22 Dec 2007 06:59:06


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://www.yqcomputer.com/
N59.776 E10.457