w3-tools.com - Free Webmaster Tools and Resources
 
w3-tools.com - Free Webmaster Tools and Resources
 Free Webmaster Tools and Resources

 



PHP-GTK Manual

This manual is provided as a courtesy. It is not an official source. Please check gtk.php.net for updated information.

PHP-GTK Manual

PHP-GTK Manual

GtkEventBox Constructor

GtkEventBox (void);

The most common need for a GtkEventBox arises when a tooltip is required for a non-windowed widget.

Example 16. Giving a GtkLabel a tooltip.

<?php

dl('php_gtk.' . (strstr(PHP_OS, 'WIN') ? 'dll' : 'so'));

$window = &new GtkWindow();
$window->set_position(GTK_WIN_POS_CENTER);
$window->connect_object('destroy', array('gtk', 'main_quit'));

$eventbox = &new GtkEventBox();
$label = &new GtkLabel("This is a normal label.  It cannot capture 
events.");
$eventbox->add($label);
$label->show();
$window->add($eventbox);

$tooltip = &new GtkTooltips();
$tooltip->set_tip($eventbox, "So how did this get here?", null);
$tooltip->enable();

$window->show_all();

gtk::main();

?>

Newsletter

Join to our newsletter and receive news and updates about our site.
Your name: 
E-mail address: 
Action: 
 

Hosted by

Search

Google
Web w3-tools.com

Links

  What is my IP? Find your IP address!     Valid XHTML 1.0 Transitional  
Copyright © 2006. by w3-tools.com. All rights reserved