I have some problem to display lines on windows. I asked same query in FLTK 
development group and they refer to this group.

I'm attaching a program.
link is
http://rapidshare.com/files/34618174/test.rar.html

program description

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 mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to