I can't seem to figure out how to remove a line from a Fl_Check_Browser.

This does not work. Using the KDevelop debugger, it appears that the
Fl_Widget* from child() is its own parent?

Here is what I'm doing:

        int idx = layers->value();

        if(idx <= 0)
                return;

        Fl_Widget *w= layers->child(idx - 1);

        layers->remove(*w);

        Fl::delete_widget(w);

Looking at the source for Fl_Check_Browser, the browser doesn't contain
widgets at all ??? Rather it contains cb_items which is a struct that holds
a few fields (checked, text, etc).

What do others do for removing lines?

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

Reply via email to