[wx-dev] wxImageComboBox API

Vadim Zeitlin vadim at wxwindows.org
Sun Sep 3 16:06:49 PDT 2006


On Sun, 03 Sep 2006 18:09:46 +0300 Jaakko Salli <jaakko.salli at pp.inet.fi> wrote:

JS> For the most part, I have now finished the control and
JS> the widgets sample page. Here's the API briefly,
JS> incase you want to have some changes done before I
JS> write the documentation.
JS> 
JS> Constructors: Same as wxComboBox, so you can only set
JS>   strings in them.
JS> 
JS> Item adding: Append and Insert, similar to
JS>   wxControlWithItems except there is const wxBitmap&
JS>   bitmap argument after string.

 Wait, I thought we agreed that it would be better to use wxImageList for
this class?

JS> SetAutoResizeStyle(style): Controls how the combo box
JS>   can grow in height, based on images used.

 So does this mean that images of different sizes are supported? I'm not
sure if this is really needed.

JS> The MSW choice has indentation support however, which
JS> wxOwnerDrawnComboBox doesn't have. Do you think it
JS> would be a worthwhile addition?
JS> 
JS> In addition, MSW combo box seems to support a separate
JS> selected image. Should generic version have this as
JS> well?

 Both of these features are, in theory, useful, but I think they should be
added later to make integration of the initial patch easier.

 Thank you,
VZ





More information about the wx-dev mailing list