> > > I know this example is just to illustrate the question our=20 > > friend had( to understand the use of offscreen methods), but=20 > > I was wondering if I wanted to do exactly the same example=20 > > you did, if I just create the main screen as Fl_Double_Window=20 > > as you did would solve all the double buffering problems, and=20 > > I wouldn't need to care about making a offscreen draw method,=20 > > because the son object would draw in the main screen's draw=20 > > method which is a offscreen draw. Am I right or do I need to=20 > > have all my objects in the screen doing double buffering even=20 > > if my parent window is already Fl_Double_Window? > > > I am not sure I understand the question, but if your outer window is a > double window, that should take care of the buffering for all its child > widgets, so they should not flicker. > > The only advantage of the off-screen in that case might be that you can > use it for incremental drawing, which you can not easily do with regular > fltk rendering, but probably would not want or need in general. > > > > > > SELEX Sensors and Airborne Systems Limited > Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex= > SS14 3EL > A company registered in England & Wales. Company no. 02426132 > ******************************************************************** > This email and any attachments are confidential to the intended > recipient and may also be privileged. If you are not the intended > recipient please delete it from your system and notify the sender. > You should not copy it or use it for any purpose nor disclose or > distribute its contents to any other person. > ******************************************************************** >
I think you understood correctly, so the example I commented(offscreen-test.cxx) was using both Fl_Double_Window and offscreen methods because animation issues? I'm planning to do animations and also real time traces, so you would recommend me to use offscreen methods? In the case that I make a component that is a subclass of Fl_Double_Window, if I keep just calling redraw() or damage(FL_DAMAGE_ALL) methods each time I want to animate would not be the best way to implement? Thanks again, J.Marcelo Auler _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

