[wx-dev] wxImageComboBox API
Jaakko Salli
jaakko.salli at pp.inet.fi
Sun Sep 3 22:54:08 PDT 2006
Vadim Zeitlin wrote:
> 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?
Sorry, I misunderstood you based on what you quoted. Of course
we could use wxImageList, but if it is only needed for wxMSW,
its implementation details could be hidden just as well.
Personally, I think we should use whichever is better API to
program. In other words, is it more convenient to add images
to wxImageList than directly to the control itself?
>
> 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.
Not necessarily images of different size (altough I do support
that currently), but images larger than control. Well, if
nobody thinks it should be included, I will of course drop the
feature (ie. the control will then always resize to the height
of images used). Same goes for support of variable image sizes.
Regards,
Jaakko
More information about the wx-dev
mailing list