Pike v8.0 release 1738

Class GTK1.Tooltips

Inheritance graph
GTK1.Object GTK1.Data GTK1.Tooltips
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 especially helpful for adding more verbose descriptions of things such as buttons in a toolbar.

An individual tooltip belongs to a group of tooltips. A group is created with a call to GTK1.Tooltips(). Every tooltip in the group can then be turned off with a call to disable() and enabled with enable().

The length of time the user must keep the mouse over a widget before the tip is shown, can be altered with set_delay(). This is set on a 'per group of tooltips' basis.

To assign a tip to a particular W(Widget), set_tip() is used.

The default appearance of all tooltips in a program is determined by the current gtk theme that the user has selected. To change the tooltip appearance manually, use set_colors(). Again, this is per group of tooltips.


Inherit Data

inherit GTK1.Data : Data


Method create

GTK1.Tooltips GTK1.Tooltips()

Description

Creates an empty group of tooltips. This function initialises a GTK1.Tooltips structure. Without at least one such structure, you can not add tips to your application.