News : The level of daily SPAM has reached insane proportions, all registrations are now manual. I ask you to send me an e-mail (john (at) murga (dot) org), to confirm that you want me to create an account for you.


Post Reply  Post Thread 
Fl_File_Chooser callback
Author Message
sk2007
Junior Member
**


Posts: 6
Group: Registered
Joined: May 2007
Status: Offline
Reputation: 0
Post: #1
Fl_File_Chooser callback

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

05-12-2007 08:13 PM
Find all posts by this user Quote this message in a reply
sk2007
Junior Member
**


Posts: 6
Group: Registered
Joined: May 2007
Status: Offline
Reputation: 0
Post: #2
RE: Fl_File_Chooser callback

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.

05-13-2007 01:51 PM
Find all posts by this user Quote this message in a reply
mikshaw
Senior Member
****


Posts: 522
Group: Registered
Joined: Apr 2007
Status: Offline
Reputation: 5
Post: #3
RE: Fl_File_Chooser callback

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

05-14-2007 01:07 AM
Find all posts by this user Quote this message in a reply
sk2007
Junior Member
**


Posts: 6
Group: Registered
Joined: May 2007
Status: Offline
Reputation: 0
Post: #4
RE: Fl_File_Chooser callback

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

05-19-2007 10:08 PM
Find all posts by this user Quote this message in a reply
mikshaw
Senior Member
****


Posts: 522
Group: Registered
Joined: Apr 2007
Status: Offline
Reputation: 5
Post: #5
RE: Fl_File_Chooser callback

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

05-20-2007 08:06 AM
Find all posts by this user Quote this message in a reply
Post Reply  Post Thread 

View a Printable Version
Send this Thread to a Friend
Subscribe to this Thread | Add Thread to Favorites

Forum Jump: