GtkEventBox Constructor

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.


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

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

$eventbox = &new GtkEventBox();
$label = &new GtkLabel("This is a normal label.  It cannot capture 

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




© Copyright 2003-2023 The ultimate PHP Editor and PHP IDE site.