Chapter 3 Event Handling

This chapter explains the principles behind event-driven programming in wxWidgets, including how events are generated, how an application handles them using event tables, and where window identifiers fit in. We’ll also discuss plug-in and dynamic event handlers, and we’ll describe how you can create your own event class, types, and macros.

Event-Driven Programming

When programmers encountered an Apple Macintosh for the first time, they were astonished at how different it was from the conventional computer experience of the period. Moving the pointer from one window to another, playing with scrollbars, menus, text controls and so on, it was hard to imagine how the underlying code sorted out this fabulous ...

Get Cross-Platform GUI Programming with wxWidgets now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.