GtkNotebook::insert_page

GtkNotebook::insert_page

void insert_page ( GtkWidget child , [ GtkWidget tab_label , [int position ]]);

Adds a new page to the notebook as the positionth page. child is added as the "page" with tab_label as the tab. child can be any widget but it is most useful when child is descended from GtkContainer. The tab_label is usually a GtkLabel but may be any widget. If position is -1 the page will be added as the last page in the notebook. Page positions begin with 0.

tab_label is optional. If it is not supplied the tab will be set to "page n" where n is the page number.

position is optional. If it is not supplied it will default to -1 which will put the page at the end of the notebook.

See also: append_page() , prepend_page() , remove_page()

© Copyright 2003-2023 www.php-editors.com. The ultimate PHP Editor and PHP IDE site.