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)

Solution of exercise problem


Let us solve it step-by-step by performing the following steps:

  1. Create a new wxWidgets project and set the project name to MyPaint. Choose wxSmith as the Preferred GUI Builder.

  2. Click on the wxFrame in the Management pane as shown in the following screenshot:

  3. Set the Title property to MyPaint.

  4. Click on the Layout tab and click on the wxBoxSizer button as shown in the following screenshot. Then click on the frame shown inside wxSmith window:

  5. Next add a wxGridSizer to the newly added wxBoxSizer in a similar manner. Refer to the following screenshot for the wxGridSizer button. After wxGridSizer is added set the Cols property to 1.

  6. Click on the Standard tab and add a wxScrolledWindow to the wxGridSizer as per the following screenshot:

  7. Set the following properties for wxScrolledWindow:

    • Var name to MyPaintWindow

    • Min Width to 640 and Min Height to 480

    • Border Width to 5.

  8. At this step the Management pane shall look similar to the following screenshot:

  9. Click on the Dialogs tab...