Murga-Projects Forums

Full Version: Fl_File_Chooser callback
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,

Is it true that the callback is not implemented for Fl_File_Chooser? I tried and got error message like no such method.

Cheers
So it is true that the callback is not implemented for Fl_File_CHooser how can I use Fl_File_Chooser in murgaLua? Please help.
I've found that fl_file_chooser is easier to work with than Fl_File_Chooser

Code:
choose=fltk.fl_file_chooser("a title","*.{jpg,png}","/usr/share",0);
if choose then print(choose) end


I can't remember what that last parameter is for, so I just left it at 0

mikshaw Wrote:
I've found that fl_file_chooser is easier to work with than Fl_File_Chooser

Code:
choose=fltk.fl_file_chooser("a title","*.{jpg,png}","/usr/share",0);
if choose then print(choose) end


I can't remember what that last parameter is for, so I just left it at 0


Thanks a lot. This is a great tip. This should be included in the doc somewhere.

Cheers

The zero (last parameter) specifies whether the filename returned is relative or absolute. A non-zero number would return a relative filename
Reference URL's