wxRadioBox not derived from wxControlWithItems?
Maximilian Matthé
Maxi.Matthe at web.de
Tue May 22 09:10:56 PDT 2007
Vadim Zeitlin schrieb:
> On Tue, 22 May 2007 16:26:30 +0200 Maximilian Matthé <Maxi.Matthe at web.de> wrote:
>
> MM> Vadim Zeitlin schrieb:
> MM> > On Mon, 21 May 2007 20:10:10 +0200 Maximilian Matthé <Maxi.Matthe at web.de> wrote:
> MM> >
> MM> > MM> I just wanted to add items to a wxRadioBox dynamically after having
> MM> > MM> created with new wxRadioBox(...).
> MM> >
> MM> > This is not supported.
> MM> >
> MM> Well, but why is it not supported? Doesn't it seem logical to derive it
> MM> from wxControlWithItems? Whats the reason it is not supported? Is it a
> MM> design issue?
>
> Radio boxes usually are not dynamic so for me it's logical that it doesn't
> support this. So while I don't think it's a design issue at C++ level you
> could say it's an UI design issue.
>
> BTW, I forgot to mention that you can disable or even hide (although IMHO
> this looks rather ugly) radio box items which don't make sense currently.
> Maybe this is enough for your needs.
>
> Regards,
> VZ
>
Hm... OK, if you think like this, that radio boxes are not dynamic its
logical to derive it from ItemContainerImmutable. But then the
developers should change that in the documentation ;-)
Hiding and disabling Radioboxitems is no solution for me... i think i
got to have my own sizer and add items for my own...
Greetings, Max
More information about the wx-users
mailing list