Murga-Projects Forums
Fl_File_Chooser callback - Printable Version

+- Murga-Projects Forums (http://www.murga-projects.com/forum)
+-- Forum: Project Forums (/forumdisplay.php?fid=1)
+--- Forum: MurgaLua - General (/forumdisplay.php?fid=2)
+--- Thread: Fl_File_Chooser callback (/showthread.php?tid=19)


Fl_File_Chooser callback - sk2007 - 05-12-2007 08:13 PM

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


RE: Fl_File_Chooser callback - sk2007 - 05-13-2007 01:51 PM

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.


RE: Fl_File_Chooser callback - mikshaw - 05-14-2007 01:07 AM

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


RE: Fl_File_Chooser callback - sk2007 - 05-19-2007 10:08 PM

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


RE: Fl_File_Chooser callback - mikshaw - 05-20-2007 08:06 AM

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