how to change the style of any wxwidgets control?

CodeLite installation/troubleshooting forum
happythings
CodeLite Enthusiast
Posts: 18
Joined: Thu Oct 25, 2018 1:02 pm
Genuine User: Yes
IDE Question: c++
Contact:

how to change the style of any wxwidgets control?

Post by happythings »

This is not a question about codelite, but a question about wxwdigets.
I can set the wxCB_DROPDOWN style to an wxComboBox object wxComboBox* myCombo,
but if I want to change the style using myCombo->SetWindowStyle(myCombo->GetWindowStyle()|wxCB_DROPDOWN ), it will not take effect even if GetWindowStyle() return the changed style. This seems a fool question, but it's a real question for me, and can not search valuable information on the internet, so help me please! I want to know how to change the widget style when I want to.
thank you very much.
User avatar
eranif
CodeLite Plugin
Posts: 6165
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: how to change the style of any wxwidgets control?

Post by eranif »

the forum you are seeking is here:

https://forums.wxwidgets.org
Make sure you have read the HOW TO POST thread
Post Reply