> My best shot (below) draws a plot in a window, 
> but plot vanishes after a fraction of second. I will 
> appreciate any clues about how to proceed.

Basically, the problem is that you can not draw to a fltk window unless
you are within that windows ::draw() method. (Actually you can, but it
is too complicated to go into here, best just to assume that you can
not.)

So - you need to make your plotting window as a derived class from
Fl_Box (or some such) and then override the ::draw() method.

Put your plotting lib calls within your derived draw method, and things
should be better...

Examples... Hmm try Greg's examples page, you might see something there
that helps...
Maybe,

http://www.seriss.com/people/erco/fltk/#AnimateDrawing






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.
********************************************************************

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

Reply via email to