comparison 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
comparison
equal deleted inserted replaced
2010:c60462acb9cf 2012:bfb8bc9ddf62
78 78
79 FltkPlatform *platform = new FltkPlatform (); 79 FltkPlatform *platform = new FltkPlatform ();
80 Layout *layout = new Layout (platform); 80 Layout *layout = new Layout (platform);
81 81
82 Fl_Window *window = new Fl_Window(200, 300, "Dw Links2"); 82 Fl_Window *window = new Fl_Window(200, 300, "Dw Links2");
83 window->box(FL_NO_BOX);
83 window->begin(); 84 window->begin();
84 Fl_Widget *Panel = new Fl_Box(0, 0, ww, lh, "CONTROL PANEL"); 85 Fl_Widget *Panel = new Fl_Box(0, 0, ww, lh, "CONTROL PANEL");
85 86
86 Panel->color(FL_GRAY_RAMP + 3); 87 Panel->color(FL_GRAY_RAMP + 3);
87 Panel->labelcolor(FL_WHITE); 88 Panel->labelcolor(FL_WHITE);
89 Panel->box(FL_FLAT_BOX);
88 Fl_Widget *Main = new Fl_Box(0, lh, ww, wh - 2*lh, "MAIN RENDERING AREA"); 90 Fl_Widget *Main = new Fl_Box(0, lh, ww, wh - 2*lh, "MAIN RENDERING AREA");
89 Main->color(FL_GRAY_RAMP + 4); 91 Main->color(FL_GRAY_RAMP + 4);
90 Main->labelcolor(FL_WHITE); 92 Main->labelcolor(FL_WHITE);
91 MainIdx = window->find(Main); 93 MainIdx = window->find(Main);
92 /* status bar */ 94 /* status bar */
93 Fl_Widget *Bar = new Fl_Box(0, wh - lh, 200, lh, "STATUS BAR..."); 95 Fl_Widget *Bar = new Fl_Box(0, wh - lh, 200, lh, "STATUS BAR...");
94 Bar->color(FL_GRAY_RAMP + 3); 96 Bar->color(FL_GRAY_RAMP + 3);
95 Bar->labelcolor(FL_WHITE); 97 Bar->labelcolor(FL_WHITE);
98 Bar->box(FL_FLAT_BOX);
96 99
97 window->resizable(Main); 100 window->resizable(Main);
98 window->end(); 101 window->end();
99 102
100 // 103 //