diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2002-05-01 12:41:21 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2002-05-01 12:41:21 +0000 |
| commit | 94a9fb879f3bb31785ddca44c6bbaba5283da136 (patch) | |
| tree | 6be38779406339f510975a43d8bb967ac3a4960d /src/Fl_File_Chooser.fl | |
| parent | 3a33fc7d818cb336bad2cc81a1dc821f6b75f5d0 (diff) | |
Fix backspace "bug" in file chooser - now treat delete and backspace the
same, eliminating any filename completion value.
Added relative argument to fl_file_chooser() and fl_dir_chooser(); both
default to 0 (return absolute paths)
Give focus to the filename field in the chooser when show() is called.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2157 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_File_Chooser.fl')
| -rw-r--r-- | src/Fl_File_Chooser.fl | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Fl_File_Chooser.fl b/src/Fl_File_Chooser.fl index f78da0404..56f9175c9 100644 --- a/src/Fl_File_Chooser.fl +++ b/src/Fl_File_Chooser.fl @@ -150,8 +150,8 @@ rescan();} {} Function {show()} {open return_type void } { code {window->hotspot(fileList); -window->show();} {selected - } +window->show(); +fileName->take_focus();} {} } Function {shown()} {return_type int } { @@ -217,10 +217,10 @@ else } } -decl {FL_EXPORT char *fl_dir_chooser(const char *message,const char *fname);} {public +decl {FL_EXPORT char *fl_dir_chooser(const char *message,const char *fname,int relative=0);} {public } -decl {FL_EXPORT char *fl_file_chooser(const char *message,const char *pat,const char *fname);} {public +decl {FL_EXPORT char *fl_file_chooser(const char *message,const char *pat,const char *fname,int relative=0);} {selected public } decl {FL_EXPORT void fl_file_chooser_callback(void (*cb)(const char*));} {public |
