GtkNotebook

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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.