From 318b3dea5750dfce5103a8fbce6eea38f7fcd613 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Sun, 12 Dec 2010 19:52:26 +0000 Subject: Added an 'Options' dialog (replacing test/preferences) that can be used to set system wide or user real options like Visible Focus. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8018 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- FL/Fl_Tooltip.H | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'FL/Fl_Tooltip.H') diff --git a/FL/Fl_Tooltip.H b/FL/Fl_Tooltip.H index 49419c985..33b69cb6a 100644 --- a/FL/Fl_Tooltip.H +++ b/FL/Fl_Tooltip.H @@ -55,11 +55,11 @@ public: */ static void hoverdelay(float f) { hoverdelay_ = f; } /** Returns non-zero if tooltips are enabled. */ - static int enabled() { return enabled_; } + static int enabled() { return Fl::option(Fl::OPTION_SHOW_TOOLTIPS); } /** Enables tooltips on all widgets (or disables if b is false). */ - static void enable(int b = 1) { enabled_ = b;} + static void enable(int b = 1) { Fl::option(Fl::OPTION_SHOW_TOOLTIPS, b);} /** Same as enable(0), disables tooltips on all widgets. */ - static void disable() { enabled_ = 0; } + static void disable() { enable(0); } static void (*enter)(Fl_Widget* w); static void enter_area(Fl_Widget* w, int X, int Y, int W, int H, const char* tip); static void (*exit)(Fl_Widget *w); @@ -100,7 +100,6 @@ private: private: static float delay_; //!< delay before a tooltip is shown static float hoverdelay_; //!< delay between tooltips - static int enabled_; static Fl_Color color_; static Fl_Color textcolor_; static Fl_Font font_; -- cgit v1.2.3