DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.
[STR New] Link: http://www.fltk.org/str.php?L2062 Version: 2.0-current In a TabGroup we resize the child widget - if it's the only one - to the full size of the TabGroup to save screen space. As soon as there are more than one child widgets we resize back to make the tabs visible. This works fine, but somtimes when there is just one child widget, its label text is partly visible in white (see attached screenshot). The little patch below modifies TabGroup to not draw tabs in case that they have zero height. --- src/TabGroup.cxx.orig 2008-10-11 20:09:06 +0200 +++ src/TabGroup.cxx 2008-10-11 20:09:44 +0200 @@ -411,7 +411,7 @@ void TabGroup::draw_tab_background() } void TabGroup::draw_tab(int x1, int x2, int W, int H, Widget* o, int what) { - if (x2 <= x1) return; // ignore ones shrunk to zero width + if (x2 <= x1 || H <= 0) return; // ignore ones shrunk to zero width or height bool drawlabel = true; if (x2 < x1+W) { if (x2 <= x1+pager_->slope()) drawlabel = false; Link: http://www.fltk.org/str.php?L2062 Version: 2.0-current
<<attachment: white_letters.png>>
_______________________________________________ fltk-bugs mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk-bugs
