The Fl_Tooltip class provides tooltip support for
all FLTK widgets.
Gets or sets the tooltip delay. The default delay is 1.0 seconds.
Returns non-zero if tooltips are enabled.
Enables tooltips on all widgets (or disables if b is false).
Same as enable(0), disables tooltips on all widgets.
This method is called when the mouse pointer enters a
You may be able to use this to provide tooltips for internal pieces
of your widget. Call this after setting Fl::belowmouse() to
your widget (because that calls the above enter() method). Then figure
out what thing the mouse is pointing at, and call this with the widget
(this pointer is used to remove the tooltip if the widget is deleted
or hidden, and to locate the tooltip), the rectangle surrounding the
area, relative to the top-left corner of the widget (used to calculate
where to put the tooltip), and the text of the tooltip (which must be
a pointer to static data as it is not copied).
This method is called when the mouse pointer leaves a
Gets or sets the background color for tooltips. The default
background color is a pale yellow.
Gets or sets the typeface for the tooltip text.
Gets or sets the tooltip hover delay, the delay between tooltips.
The default delay is 0.2 seconds.
Gets or sets the size of the tooltip text.
Gets or sets the color of the text in the tooltip. The default is
From nentwig (GuessWho, 09:38 Mar 05, 2004 (score=1)
If you want to add a tooltip to a widget, use
[ Reply ]