comparison test/dw_find_test.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 c60462acb9cf
children 8cf59505bd0a
comparison
equal deleted inserted replaced
2010:c60462acb9cf 2012:bfb8bc9ddf62
71 { 71 {
72 platform = new FltkPlatform (); 72 platform = new FltkPlatform ();
73 layout = new Layout (platform); 73 layout = new Layout (platform);
74 74
75 window = new Fl_Window(200, 300, "Dw Find Test"); 75 window = new Fl_Window(200, 300, "Dw Find Test");
76 window->box(FL_NO_BOX);
76 window->begin(); 77 window->begin();
77 78
78 viewport = new FltkViewport (0, 0, 200, 280); 79 viewport = new FltkViewport (0, 0, 200, 280);
79 viewport->end(); 80 viewport->end();
80 layout->attachView (viewport); 81 layout->attachView (viewport);
88 resetButton->callback (resetCallback, NULL); 89 resetButton->callback (resetCallback, NULL);
89 resetButton->when (FL_WHEN_RELEASE); 90 resetButton->when (FL_WHEN_RELEASE);
90 resetButton->clear_visible_focus (); 91 resetButton->clear_visible_focus ();
91 92
92 resultLabel = new Fl_Box(100, 280, 100, 20, "---"); 93 resultLabel = new Fl_Box(100, 280, 100, 20, "---");
94 resultLabel->box(FL_FLAT_BOX);
93 95
94 FontAttrs fontAttrs; 96 FontAttrs fontAttrs;
95 fontAttrs.name = "Bitstream Charter"; 97 fontAttrs.name = "Bitstream Charter";
96 fontAttrs.size = 14; 98 fontAttrs.size = 14;
97 fontAttrs.weight = 400; 99 fontAttrs.weight = 400;