PHP-GTK
Friday, October 31, 2014 
download | documentation | applications | faq | changelog | resources 


search for in the  


previousGtkStatusbar
GtkStatusbar::get_context_idnext

Last updated: Sun, 12 May 2013
view this page in English

GtkStatusbar Constructor

Creates a new GtkStatusbar. The new status bar will have an empty message stack. New messages should be added using push() .

Example 115. Creating a GtkStatusbar

<?php
// Create a new window.
$window = new GtkWindow();
 
// Set the window up to close cleanly.
$window->connect_simple('destroy', array('Gtk', 'main_quit'));
 
// Create a status bar.
$status = new GtkStatusbar();
 
// Push a message onto the message stack.
// We need a context id.
$context_id = $status->get_context_id('example');
$status->push($context_id, 'Andrei is dreamy.');
 
// Add the combobox to the window.
$window->add($status);
 
// Show the window and its contents.
$window->show_all();
 
// Start the main loop.
Gtk::main();
?>

See also: push()


User Contributed Notes
gtk.gtkstatusbar.constructor.php
add a note about notes
There are no user contributed notes for this page.


previousGtkStatusbar
GtkStatusbar::get_context_idnext

Last updated: Sun, 12 May 2013
view this page in English


credits 

PHP  Copyright © 2001-2014 The PHP Group
 All rights reserved.
Last updated: Sun May 12 20:51:00 2013 CEST