User forums > General (but related to Code::Blocks)
wxSmith and wxPropertyGrid
cacb:
--- Quote from: airc on July 20, 2014, 06:39:29 pm ---wxsmith is buggy , i strongly recommend wxformbuilder
its the best rad tool for wxwidgets
--- End quote ---
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.
cacb:
--- Quote from: cacb on July 20, 2014, 07:00:04 pm ---Please, if anyone can provide some info on possible support for wxPropertyGrid in wxSmith, please share.
--- End quote ---
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
Navigation
[0] Message Index
[*] Previous page
Go to full version