Chapter 17: Desktop Applications with Neko
495
The Tab Control
While technically a container, the Tab control provides great functionality by maximizing space within a
dialog where controls can be grouped by purpose. The Tab control, otherwise known as a Notebook in
some GUI frameworks, is an excellent means of creating overlaying panels in a tabbed book format, so
that only one set of grouped controls are visible at any one time, while at the same time, allowing all
controls across all pages to be accessible at once.
The Tab control functions very similarly to a dialog control, whereby containers, rather than controls, are
added as the child object. Then, for each container appended to the Tab control, a new page is added to
facilitate it. Once all pages are added, you can then name the tabs associated with the pages by passing a
string to the tabTitle method of each container. tabTitle is a method of the base Control class, so all
containers and controls, including the Tab control itself, can make use of it.
Pages:
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918