Book Image

C++ Application Development with Code::Blocks

By : BIPLAB MODAK, Biplab Kumar Modak
Book Image

C++ Application Development with Code::Blocks

By: BIPLAB MODAK, Biplab Kumar Modak

Overview of this book

Table of Contents (13 chapters)

Rapid app development with wxSmith

We have learned about app development for Windows platform in the last few sections. But all our code was hand-written. We also noticed that even for a simple GUI we have to write several lines of code.

So, can we do something about it? How about automatic code generation of GUI codes? Sound interesting! Code::Blocks comes with a plugin, called wxSmith, which can generate C++ code (using wxWidgets toolkit) based on the user generated GUI inside a Visual editor. We'll learn this with another example.

  1. Create a new wxWidgets project. This time we'll name it something meaningful. In the following window enter project title as MyNotePad.

  2. In the following page, select wxSmith as Preferred GUI Builder. This option configures wxWidgets project to use wxSmith GUI builder. Refer the following screenshot:

  3. After the project generation is complete files following window will be displayed:

  4. The preceding window have the following three major components:

    • The wxSmith window:...