Code::Blocks Forums
User forums => General (but related to Code::Blocks) => Topic started by: tigerbeard on December 23, 2012, 03:11:29 pm
-
Hello,
using wxWidgets 2.9.x on C::B and I am very happy with the wxSmith integration.
In my nightly build svn7966 I could not find support for wxPropertyGrid. I was wondering if there is a reason for that, especially since wxSmith is using that control itself?
regards
tiger
-
wxsmith is not ported to (fully) support wx2.9. Patches welcome.
-
OK, thank you for your answer. Its still a wounderful tool :D!
-
Hi, I was just about going to ask this question (support for wxPropertyGrid in wxSmith), and discovered it has been asked before. My question now is: Has the situation changed in any way since? Is there some direct or indirect way to use wxPropertyGrid in wxSmith now?
I am using the very latest nightlies of C::B under Win7 and self-built nightlies (based on Jens Lody tarball sources) under Kubuntu 14.04 (C::B is built against wx2.8 on Kubuntu). For application development I use wx3.0.
Any advice appreciated. I really enjoy wxSmith and find things far easier when using it.
Regards,
-
wxsmith is buggy , i strongly recommend wxformbuilder
its the best rad tool for wxwidgets
-
wxsmith is buggy , i strongly recommend wxformbuilder
its the best rad tool for wxwidgets
Your opinion is irrelevant to this thread, please don't pollute it.
Please, if anyone can provide some info on possible support for wxPropertyGrid in wxSmith, please share.
-
Please, if anyone can provide some info on possible support for wxPropertyGrid in wxSmith, please share.
I found a partial solution that seems to work, at least on a basic level:
Use wxSmith to create a "Custom control", and then change some of the options:
- Set "Creating code" to $(THIS) = new $(CLASS)($(PARENT),$(ID),$(POS),$(SIZE),$(STYLE),$(NAME));
- Set "Incude file" to wx/propgrid/manager.h
- Set "Style" to wxPG_TOOLBAR|wxPG_SPLITTER_AUTO_CENTER|wxPG_DEFAULT_STYLE (add/remove options as required)
- Set "Var name" to e.g. m_pgman
- Set "Class name" to wxPropertyGridManager
Additional include files that may have to be added, depending on properties used
#include <wx/propgrid/propgrid.h>
#include <wx/propgrid/advprops.h>
Above uses the wxPropertyGridManager that allows several pages, but a similar approach can be used for a plain wxPropertyGrid