disable / enable a item in combox's list

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
sunqun9
In need of some credit
In need of some credit
Posts: 2
Joined: Fri Jan 25, 2008 12:56 pm

disable / enable a item in combox's list

Post by sunqun9 » Fri Jan 25, 2008 1:02 pm

Hellow:

How to disable / enable a item in combox's list!

please give me a hand! thank you!

clyde729
Super wx Problem Solver
Super wx Problem Solver
Posts: 426
Joined: Mon May 29, 2006 10:50 pm
Location: Jena, Germany

Post by clyde729 » Mon Jan 28, 2008 7:23 am

I don't think that this is possible in a platform independent way. The API doesn't have methods for this.

But AFAIK it can be done by using HTML. I can't tell you if the wxHTML classes have such a functionality but it could be point to start.

Else, you will need to implement some platform specific solution and enable them via #ifdefs.
OS: Windows XP Home, Compiler: MingW, Version: wxWidgets 2.8.0, IDE: wx-Devcpp

sunqun9
In need of some credit
In need of some credit
Posts: 2
Joined: Fri Jan 25, 2008 12:56 pm

Post by sunqun9 » Tue Jan 29, 2008 10:47 am

thank you!

May I inherit the class wxControlWithItems to enalbe\disable the item in comboBox list on platform WIN32? My inherit class will close mouse event and change item's text colorful when the item is set the status disable.

Post Reply