PHP-GTK
Friday, August 01, 2014 
download | documentation | applications | faq | changelog | resources 


search for in the  


previousGtkTooltips
GtkTooltips::disablenext

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

GtkTooltips Constructor

Creates a new tooltips object. After instantiating the object, you can begin to add tooltips for widgets with set_tip() .

Example 126. Adding a tooltip to a button

<?php
$tt = new GtkTooltips();
 
$btn = new GtkButton('Quit');
$btn->connect_simple('clicked', array('Gtk', 'main_quit'));
 
//set the tip
$tt->set_tip(
    //widget to set the tip of
    $btn,
    //normal tooltip
    'Quits the application',
    //longer description
    'If you press this button, then'
    . ' the application ends its life.'
);
 
 
//create the window, add the button
$wnd = new GtkWindow();
$wnd->connect_simple('destroy', array('Gtk', 'main_quit'));
$wnd->add($btn);
$wnd->show_all();
Gtk::main();
?>

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


previousGtkTooltips
GtkTooltips::disablenext

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