Author Topic: wxSmith and wxPropertyGrid  (Read 6744 times)

Offline tigerbeard

  • Almost regular
  • **
  • Posts: 186
wxSmith and wxPropertyGrid
« 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

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: wxSmith and wxPropertyGrid
« Reply #1 on: December 28, 2012, 06:44:04 pm »
wxsmith is not ported to (fully) support wx2.9. Patches welcome.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline tigerbeard

  • Almost regular
  • **
  • Posts: 186
Re: wxSmith and wxPropertyGrid
« Reply #2 on: December 29, 2012, 05:36:47 pm »
OK, thank you for your answer. Its still a wounderful tool  :D!   

Offline cacb

  • Lives here!
  • ****
  • Posts: 536
Re: wxSmith and wxPropertyGrid
« Reply #3 on: July 20, 2014, 01:33:28 pm »
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,

Offline airc

  • Multiple posting newcomer
  • *
  • Posts: 37
Re: wxSmith and wxPropertyGrid
« Reply #4 on: July 20, 2014, 06:39:29 pm »
wxsmith is buggy , i strongly recommend wxformbuilder
 its the best rad tool for wxwidgets

Offline cacb

  • Lives here!
  • ****
  • Posts: 536
Re: wxSmith and wxPropertyGrid
« Reply #5 on: July 20, 2014, 07:00:04 pm »
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.

Offline cacb

  • Lives here!
  • ****
  • Posts: 536
Re: wxSmith and wxPropertyGrid
« Reply #6 on: July 21, 2014, 11:32:48 am »
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