User forums > General (but related to Code::Blocks)
wxWidgets project in Ubuntu Linux: wx-config error. Unknown flags.
Biplab:
--- Quote from: mandrav on February 06, 2007, 09:29:10 am ---
--- Quote ---Is there any way to disable/enable a part of wizard page dynamically (means as soon as an user selects an option)?
--- End quote ---
Hehe, as a matter of fact it aready is possible ;).
When clicking any button/checkbox/combobox/choice/listbox/radiobox in your XRC page, the script function OnClick_<control_name> is called. In there, you can use Wizard.EnableWindow(_T("control_name"), true/false) to enable/disable any control on the page.
--- End quote ---
Thanks a lot mandrav. Now I can add some sort of interactivity.
I read about these changes, but didn't track how it is done. Thanks again for the suggestion. :D
mandrav:
You should also know that you can "detect" what wx configurations are installed by using IO.ExecuteAndGetOutput("wx-config --list") and parsing the results ;).
Note though that this will trigger a security dialog so make sure you prepare the user for it.
Biplab:
--- Quote from: mandrav on February 06, 2007, 09:49:27 am ---You should also know that you can "detect" what wx configurations are installed by using IO.ExecuteAndGetOutput("wx-config --list") and parsing the results ;).
Note though that this will trigger a security dialog so make sure you prepare the user for it.
--- End quote ---
Hmm.. It seems I'm using dated knowledge. I'll refresh my knowhow and try to use newer and better functions in the script. :)
But how many possible configurations are available in Linux? E.g., gtk2-*, gtk-*, x11-*, and others??
mandrav:
--- Quote ---But how many possible configurations are available in Linux? E.g., gtk2-*, gtk-*, x11-*, and others??
--- End quote ---
You should not care about that at all. If you go the "detection" route, you will just present the found configurations and let the user choose which one to use.
Biplab:
Ok. I'll implement it later this week.
The changes are made. I would test it before I commit. Screenshot is attached below.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version