Hi,
I create a new class(MyClass) from Fl_Double_Window. I'm displaying some lines
in view window. I create an object of MyClass in View window area.
I have given a button to display lines in view window. When i click on button
lines display. But some flickering occur. If i click 3 times on button then
flickering happen. I used following code
void MyClass::draw()
{
make_current();
Fl_Double_Window::draw();
// here is the code to draw lines using fl_line function
..
..
}
to remove this flickering i changed the code like
int count =0;
void MyClass::draw()
{
make_current();
if(count==0)
{
Fl_Double_Window::draw(); // call only once
count++;
}
// here is the code to draw lines using fl_line function
...
}
Now It's working fine. There is no flickering. But a new problem is create.
When i move the mouse in that area of view window(where line is not drawn) then
complete view window become empty. There is no line in view window.
Please suggest how to solve this problem.
_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev