Tooltip test

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8788 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Matthias Melcher 2011-06-08 14:35:22 +00:00
parent b95f1c40bb
commit 6a5026055f
1 changed files with 4 additions and 2 deletions

View File

@ -59,7 +59,9 @@ public:
void layout();
/** Shows the tooltip windows only if a tooltip text is available. */
void show() {
if (tip) Fl_Menu_Window::show();
if (!tip) return;
Fl_Menu_Window::show();
}
};
@ -154,7 +156,7 @@ static void tooltip_timeout(void*) {
}
/**
This method is called when the mouse pointer enters a widget.
This method is called when the mouse pointer enters a widget.
<P>If this widget or one of its parents has a tooltip, enter it. This
will do nothing if this is the current widget (even if the mouse moved
out so an exit() was done and then moved back in). If no tooltip can