Chapter 18: Graphical User Interfaces

Chapter Goals

The wxWindows Toolkit

Frames

Frames

Frames

Frames (basic.cpp)

Adding a Text Control to the Frame

Adding a Text Control to the Frame

Adding a Text Control to the Frame (text.cpp)

Menus

Menus

Menus (menu.cpp)

Event Handling

Event Handling

Event Handling (event.cpp)

Layout Management

Layout Management

Layout Management

Layout Management

Layout Management (button.cpp)

Painting

Painting

Painting

Painting

Painting (paint.cpp)

Mouse Events

Mouse Events

Mouse Events

Mouse Events (mouse.cpp)

Dialogs

Dialogs

Dialogs

Dialogs

A Complete Example

A Complete Example

A Complete Example (game.cpp)