a> I'm quite used to applications where a combobox-like control had
a> disabled items sometimes.
Interesting, I think I've never seen any application with this UI. What's
the point of having disabled items in the combobox anyhow? Why not just
remove them if they can't be used in any case?
a> But I see there's no way of disabling/enabling items in wxChoice nor
a> wxComboBox. Or maybe is there a hidden way of doing this?
No, native controls don't support this under none of the 3 major
platforms.
a> Otherwise, is there any alternative control which would behave like
a> wxChoice and allow to disable items?
You should almost certainly be able to do this with wxComboCtrl as it's
completely customizable. Still, I wonder why to go to all this trouble
instead of simply removing the items that shouldn't be available.
Regards,
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/
a> Because it's more user-friendly to show (greyed/disabled) options you
a> can't use right now, but that you could use if some requirement was
a> met.
IMHO this is wrong. It's nice to see greyed out options if it's clear what
do you need to do to enable them. If it's not -- and I really am not sure
how can it be clear in this case -- then it's better to not show them at
all.
a> > a> But I see there's no way of disabling/enabling items in wxChoice nor
a> > a> wxComboBox. Or maybe is there a hidden way of doing this?
a> >
a> > No, native controls don't support this under none of the 3 major
a> > platforms.
a>
a> I think OSX supports it,
Yes, you're right, it does when using wxChoice. Not for wxComboBox though.
a> and I suppose it's also a way to support it in Windows and GTK, because
a> I've seen it in several apps. I don't remember now, but I've seen it.
There is, of course, a way to do it, but it's not native.