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

GtkTooltips

Adds tooltips to other widgets.

Object Hierarchy

GtkObject
`-- GtkData
       `-- GtkTooltips

Direct subclasses

None.

Description

Tooltips are the messages that appear next to a widget when the mouse pointer is held over it for a short amount of time. They are set via the set_tip() method.

They are especially helpful for adding more verbose descriptions of things such as buttons in a toolbar.

This widget holds tooltips for other widgets. You should only need one Tooltip widget for all widgets you wish to add tips to.

Tooltips can only be used on widgets which have their own x window. Other widgets, e.g. GtkLabels can be added to an GtkEventBox to benefit from tooltips.

A widget which wants to use a tooltip needs to expose GDK_ENTER_NOTIFY_MASK and GDK_LEAVE_NOTIFY_MASK which can be set via the add_events() function. Most widgets do this automatically, but e.g. a GtkDrawingArea does not.

Constructor

GtkTooltips (void);
-- Creates a new tooltips instance.

Methods

enable()
  Actives the showing of tooltips.
disable()
  Disable the showing of tooltips.
set_delay()
  Determines the time after which the tooltips are shown
set_tip()
  Sets the tooltip for a specific widget
set_colors()
  Sets the fore- and background color of the tooltips. Deprecated.
force_window()
  Used internally only.

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