> I have a Fl_Scroll object and depending on some data I want to delete
> some of its children and add new.
> (The deleting part is the one I have problems with...)
>
> How can I do this?
You remove widgets from the scroll using
scroll->remove(widget);
In the same way that you might do
scroll->add(widget);
To add it in the first place.
Or is that not the question?
You can ask the scroll how many children it has using
int n = scroll->children();
And can iterate through them using
Fl_Widget *w = scroll->child(x);
And so on - see the methods defined for Fl_Group, see if there is
anything there that will help you.
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