Alvin wrote:
> Greg Ercolano wrote:
> 
>> Alvin wrote:
>>> I can't seem to figure out how to remove a line from a Fl_Check_Browser.
>> Fl_Browser::remove(int) takes an int, so e.g.
>>
>> checkbrowser->remove(5);
>>
>> ..will remove the 5th line from the browser. See:
>>
>> http://fltk.org/documentation.php/doc-1.1/Fl_Browser.html#Fl_Browser.remove
>> IIRC, Fl_Browser based widgets have index numbers that are 1 based.
> 
> Unfortunately, Fl_Check_Browser inherits Fl_Browser_.

        yuck -- sounds like an omission if the "check browser"
        doesn't have remove(int).

        If the core folks agree, make an STR (Software Trouble Report).

        You might want to copy Fl_Check_Browser.{C,H} into your
        app dir, and hack in the remove(int) code, similar to what's
        going on in Fl_Browser. I believe a simple linked list is used,
        so it should be trivial to add a remove() method.
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to