The GtkNotebook widget is what VB developers might be used to calling a “tab control.” It has a number of tabs that the user clicks on to allow controls to exist “in the same space;” it hides and shows groups of controls at the same time, which have been placed together on a page (meaning that “a tab shows a page,” to use the terminology of some Windows tab controls).

The demo Notebook program is shown in Figure 4.6; its associated listing is of course Listing 4.6. In this program, note that you can add pages dynamically (as you can with all GTK+ widgets).

Figure 4.6. The GtkNotebook demo program running.

Listing 4.6. GtkNotebook ...

Get MySQL Building User Interfaces now with O’Reilly online learning.

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