> But, in order to help you best, I suggest that you write a short
> program, just a page or so, that is complete and compiles as-is. We
> can then take a look at every detail and even test what you wrote,
> and then send you a good solution.
>
> Matthias


I'm attaching a program.
main class is MainWindow where i create menu, buttom and 2 view windows.
I use mouse operations in this class. and pass mouse position to CLineWin class 
to draw the lines.
To draw any line use the mouse. click on left button, drag it and releas the 
button.

I used CLineWin for lines and CImageWin for image.
I'm sending a sample so that u can understand the problem in detail and give 
any solution.

In CLineWin::draw() function, i draw the line. Here i need to call 
Fl_Double_Window::draw(); otherwise line window area window will display as 
black.
If i call Fl_Double_Window::draw() only once then there is no flickering 
problem. But if i called it everytime then flickering problem.
But in case when i call Fl_Double_Window::draw() only once then a new problem 
is create.
If i have drawn a line and now i move the mouse then that line doesn't appear. 
but if i use Fl_Double_Window::draw() everytime and move the mouse then line 
appears always.
so please have a look and reply


_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev

Reply via email to