From 4cea3aee0c4153c7b7c2fc485b2e4ef37cbd3f19 Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Thu, 9 Jul 2015 00:10:44 +0000 Subject: Fix box background drawing for deactivated widgets (STR #2907). Two new static methods have been introduced: - Fl::box_color(Fl_Color c) returns the bg color dependent on the widget's state (inactive_r()). - Fl::set_box_color(Fl_Color c) sets the correct bg color dependent on the widget's state by calling fl_color(Fl::box_color(c)). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10781 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- FL/Fl.H | 3 +++ 1 file changed, 3 insertions(+) (limited to 'FL') diff --git a/FL/Fl.H b/FL/Fl.H index 4c7649f90..3f19545ff 100644 --- a/FL/Fl.H +++ b/FL/Fl.H @@ -1092,7 +1092,10 @@ public: static int box_dy(Fl_Boxtype); static int box_dw(Fl_Boxtype); static int box_dh(Fl_Boxtype); + static int draw_box_active(); + static Fl_Color box_color(Fl_Color); + static void set_box_color(Fl_Color); // back compatibility: /** \addtogroup fl_windows -- cgit v1.2.3