From e7451ad0a9de6b8717f1334e49acd0759fb7096a Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Wed, 27 Feb 2008 08:21:58 +0000 Subject: STR 1886: added a few lines explaining the 1-based array in Fl_File_Chooser git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@6054 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- documentation/Fl_File_Chooser.html | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'documentation/Fl_File_Chooser.html') diff --git a/documentation/Fl_File_Chooser.html b/documentation/Fl_File_Chooser.html index 9e907dfa0..c25cad60e 100644 --- a/documentation/Fl_File_Chooser.html +++ b/documentation/Fl_File_Chooser.html @@ -274,6 +274,19 @@ const char *value()

Sets or gets the current value of the selected file. +

In the second form, file is a 1-based index into a list of +file names. The number of selected files is returned by +Fl_File_Chooser::count(). + +

This sample code loops through all selected files: +

+// Get list of filenames user selected from a MULTI chooser
+for ( int t=1; t<=chooser->count(); t++ ) {
+    const char *filename = chooser->value(t);
+    ..
+}
+
+

int visible()

Returns 1 if the Fl_File_Chooser window is visible. -- cgit v1.2.3