Author Topic: wxFormBuilder, C++ in Code::Blocks 13.12 - how to display main form designer?  (Read 6719 times)

Offline kathbeau

  • Multiple posting newcomer
  • *
  • Posts: 17
I gather from reading posts here that some developers choose wxFormBuilder over wxSmith, so I want to try it. (I have been playing with wxSmith, mostly following the tutorials and trying to get some basic form inheritance going for an MDI app. I like it, but want to try other GUI frameworks before I commit to anything.)

However, all I can do is use the wizard to generate project files and build them. I can manually add widgets by editing the .cpp and .h file, but I want to use a designer.

Are there tutorials or good getting-started docs for wxFormBuilder in Code::Blocks?

I'm developing for both Windows and Linux, in C++.

I'm very confused.

Kathleen

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 12123
    • Travis build status
Neighter wxSmith, not wxFormBuilder are GUI frameworks. They are just tools that generate cpp code or xml xrc files for the wxWidgets GUI framework.
I doubt you'll find any wxFormBuilder tutorials here. Probably try their site?
(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 boya

  • Single posting newcomer
  • *
  • Posts: 7
  • C programming is my favourite
Hello,
I am glad to find that you and I have similar experience. I came to know wxFormBuilder (wxFB) just one month ago, so I would like to share what I know with you.
wxFormBuilder is not a plug-in, but a stand-alone application. You should first download and install it:
http://sourceforge.net/projects/wxformbuilder/?source=directory

As oBFusCATed said, wxFormBuilder is a code-generating tool. The wxFB project file ends with .fbp, which you can find in the project created by CodeBlocks wizard. You should open it with wxFB (which might have been the default application for that type in Windows after the installation). Then you will see the similar GUI designer.
Generally, wxFB is used to create a base class for all GUI-related codes and generate a derived class to be modified for action and response. Once the apperance is modified, the base class should be re-generated. Even if the derived class is to be updated, its contents will be kept. The major difference between wxFB and wxSmith may be that wxFB separates action code from the user interface.
When you finish the code, just build and run it in CodeBlocks as you use wxSmith.
« Last Edit: December 03, 2014, 03:40:39 am by boya »
Code in Blocks

Offline kathbeau

  • Multiple posting newcomer
  • *
  • Posts: 17
Quote
Neighter wxSmith, not wxFormBuilder are GUI frameworks. They are just tools that generate cpp code or xml xrc files for the wxWidgets GUI framework.

oBFusCATed, thank you for the clarification.

Boya, thank you for explaining how wxFormBuilder is to be used. I'll install it today, and will see if I can track down some instructions to get me started.

And yes, I'll take my questions over to a wxWidgets board. I started here simply because the Code::Blocks wizard offered the creation of a wxFormBuilder project, and seemed to present a development environment for it.

Kathleen


Kathleen



Offline boya

  • Single posting newcomer
  • *
  • Posts: 7
  • C programming is my favourite
Update on Dec. 4th
  If you find the Chinese tutorial web page difficult, you may use a on-line translator, like
  http://www.microsofttranslator.com/bv.aspx?&lo=TP&from=&to=en&a=http%3A%2F%2Fwww.cppblog.com%2Fxkjy3000%2Farchive%2F2012%2F10%2F31%2F194120.html
// The end of Update

Boya, thank you for explaining how wxFormBuilder is to be used. I'll install it today, and will see if I can track down some instructions to get me started.

Actually it is not difficult to explorer the usage of wxFB, especially you have been familiar with wxSmith. They have similar user interfaces.
I also tried to find some guides, and eventually got a blog article in my native language - Chinese, which may be inconvenient for you:
http://www.cppblog.com/xkjy3000/archive/2012/10/31/194120.html

If you have any questions about wxFB, I am pleased to discuss with you. You can contact me by email, Skype or QQ.
« Last Edit: December 04, 2014, 03:03:33 am by boya »
Code in Blocks