Michael Sweet wrote:
> Greg Ercolano wrote:
>> ...
>>> * filename() is indexed from 0 instead of 1
>> Guess I wasn't aware Fl_File_Chooser's value(int) method
>> was 1 based.
>
> Fl_File_Chooser uses Fl_File_Browser which is derived from Fl_Browser_
> which is 1-based.
>
Ahh, something I couldn't see from the docs because
those other classes aren't public, and thus not shown
in the doc's class hierarchy.
I've made STR#1886 requesting Fl_File_Chooser::value()'s docs
reflect the 1-based indexing.
http://fltk.org/str.php?L1886
Probably wouldn't hurt to include an example code snippet in the docs
showing an example for() loop, to avoid confusion.
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk