From 23b3c85ba9d180d1e37b8f99978a412fb2fd9cb8 Mon Sep 17 00:00:00 2001 From: Greg Ercolano Date: Tue, 21 Dec 2010 09:48:57 +0000 Subject: Small doc clarification for how to #include this widget. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8093 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- FL/Fl_Native_File_Chooser_FLTK.H | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/FL/Fl_Native_File_Chooser_FLTK.H b/FL/Fl_Native_File_Chooser_FLTK.H index d7553a2f3..ad511666a 100644 --- a/FL/Fl_Native_File_Chooser_FLTK.H +++ b/FL/Fl_Native_File_Chooser_FLTK.H @@ -41,6 +41,15 @@ In cases where there is no native file browser, FLTK's own file browser is used instead. + To use this widget correctly, use the following include in your code: + \code + #include + \endcode + Do not include the other Fl_Native_File_Choser_XXX.H files in your code; + those are platform specific files that will be included automatically + depending on your build platform. + + The following example shows how to pick a single file: \code // Create and post the local native file chooser #include @@ -50,7 +59,7 @@ fnfc.type(Fl_Native_File_Chooser::BROWSE_FILE); fnfc.filter("Text\t*.txt\n" "C Files\t*.{cxx,h,c}"); - fnfc.directory("/var/tmp"); + fnfc.directory("/var/tmp"); // default directory to use // Show native chooser switch ( fnfc.show() ) { case -1: printf("ERROR: %s\n", fnfc.errmsg()); break; // ERROR -- cgit v1.2.3