diff options
| author | Greg Ercolano <erco@seriss.com> | 2010-12-21 09:48:57 +0000 |
|---|---|---|
| committer | Greg Ercolano <erco@seriss.com> | 2010-12-21 09:48:57 +0000 |
| commit | 23b3c85ba9d180d1e37b8f99978a412fb2fd9cb8 (patch) | |
| tree | 9087199884a9c534b82c61ad3643cba7061bf471 /FL | |
| parent | 51644b78e5bbfaf2034f653de6ccc52abb06d936 (diff) | |
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
Diffstat (limited to 'FL')
| -rw-r--r-- | FL/Fl_Native_File_Chooser_FLTK.H | 11 |
1 files changed, 10 insertions, 1 deletions
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 <FL/Fl_Native_File_Chooser.H> + \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 <FL/Fl_Native_File_Chooser.H> @@ -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 |
