| GtkNotebook |
|---|
| Prev | GtkNotebook Constructor | Next |
|---|
GtkNotebook Constructor
Creates a new GtkNotebook instance. After creating
the notebook, you should fill its pages with other widgets using append_page() and/or other similar methods.
Because GtkNotebook is a decendant of
GtkContainer, it may contain one or more children.
The notebook's children will be displayed as a "page" with a tab. It is
most useful when the notebook's children are themselves containers so that
other items may be added.
Example 25. Creating a GtkNotebook <?php
$notebook =& new GtkNotebook;
$pages = array('tab one', 'tab two', 'tab three');
foreach ($pages as $page) {
$frame =& new GtkFrame($page);
$frame->add(new GtkLabel('Sample text for ' . $page);
$notebook->append_page($frame, new GtkLabel($page));
}
$notebook->show_all();
?>
|
Tabs are automatically connected to the "clicked" signal. When a tab is clicked the
switch-page signal is
emitted which causes that tab's page to be brought to the foreground.
|
Network sites:
|
|
Quotes: |
|
Where so many hours have been spent in convincing myself that I am right, is there not some reason to fear I may be wrong?It is change, continuing change, inevitable change, that is the dominant factor in society today. No sensible decision can be made any longer without taking into account not only the world as it is, but the world as it will be. This, in turn, means that our statesmen, our businessmen, our everyman must take on a science fictional way of thinking.
|
|
|