jseb wrote:
> I'd like getting the names of the filenames picked in a Fl_File_Browser 
> widget. For example, filling a vector string with all the selected 
> filenames if the browser.

        I haven't worked with Fl_File_Browser, but assuming its based
        on Fl_Browser, you would just get the selected items the same
        way you do in Fl_Browser, eg:

// PRINT ALL SELECTED ITEMS IN BROWSER
for ( int t=1; t<=browser->size(); t++ ) {
    if ( browser->selected(t) ) {
        printf("%d) '%s'\n", t, browser->text(t));
    }
}

        If you want to get a vector of the selected text,
        just use the above loop and text() method call
        to build the vector/array.
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to