> Simply forced redraw() of the parent solved the problem.
> It's a bit inefficient, because if the parent is a "big" window with
> many objects
> I have to redraw everything. Masked by redrawing only when the bargraph
> value changes, for now.
> 
> Any way to "invalidate" to the parent only the bargraph area ?


Derive a widget from Fl_Box to draw your graph, and have its handle method do 
the actual drawing etc.

Set the boxtype of your derived widget to a BOX rather than a FRAME type (and 
certainly NOT to "NO_BOX") and then the background should be handled 
automatically. FL_FLAT_BOX is probably favourite for this sort of thing.

Deriving from group is probably a Bad Thing here, since IIRC the default 
boxtype for a group is NO_BOX, which probably explains the behaviour you are 
seeing?

Indeed, simply setting the boxtype of your group might actually help...



Selex ES Ltd
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
fltk@easysw.com
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to