diff test/dw_links2.cc @ 2012:bfb8bc9ddf62

Avoid lots of flicker while resizing the window (when "buffered_drawing" is set to 0 or 1)
author Jorge Arellano Cid <jcid@dillo.org>
date Fri, 13 May 2011 14:14:43 -0400
parents 553e63661ec1
children 8cf59505bd0a
line wrap: on
line diff
--- a/test/dw_links2.cc	Thu May 12 07:56:42 2011 -0400
+++ b/test/dw_links2.cc	Fri May 13 14:14:43 2011 -0400
@@ -80,11 +80,13 @@
    Layout *layout = new Layout (platform);
 
    Fl_Window *window = new Fl_Window(200, 300, "Dw Links2");
+   window->box(FL_NO_BOX);
    window->begin();
     Fl_Widget *Panel = new Fl_Box(0, 0, ww, lh, "CONTROL PANEL");
 
     Panel->color(FL_GRAY_RAMP + 3);
     Panel->labelcolor(FL_WHITE);
+    Panel->box(FL_FLAT_BOX);
     Fl_Widget *Main = new Fl_Box(0, lh, ww, wh - 2*lh, "MAIN RENDERING AREA");
     Main->color(FL_GRAY_RAMP + 4);
     Main->labelcolor(FL_WHITE);
@@ -93,6 +95,7 @@
     Fl_Widget *Bar = new Fl_Box(0, wh - lh, 200, lh, "STATUS BAR...");
     Bar->color(FL_GRAY_RAMP + 3);
     Bar->labelcolor(FL_WHITE);
+    Bar->box(FL_FLAT_BOX);
 
     window->resizable(Main);
    window->end();