roberts
Group: Members
Posts: 4983
Joined: Oct. 2003 |
|
Posted: May 02 2008,19:58 |
|
Quote (mikshaw @ May 02 2008,16:00) | Quote | a) Applying Fl:scheme("plastic") as in calculator.lua to everything written in MurgaLua | There's no need to edit the scripts when you can apply it to every murgaLua GUI in one shot: http://damnsmalllinux.org/cgi-bin....t=19979
On the subject of flrun, you're attempting to set the value of a menu to a string, when it requires an integer. If you change input:value() to input:add(), it adds the command to the menu. Is that what you wanted?
Also, the browse callback tries to work with fl_file_chooser directly. This is reliable only if fl_file_chooser always returns a useable value, which is never a certain bet. It's generally a good idea to check whether or not the chooser returns something before doing anything with the result. For example: Code Sample | function(browse) local txt=fltk.fl_file_chooser(text.choose,"*","") if txt then input:add(txt) end end)
|
|
Daniel's script used to work. Not sure when it no longer. But many changes and enhancements to murgaLua over the last several releases.
Thanks for the suggestion of scheme "plastic" and thanks to mikshaw for the quick fix to this useful script and of course his suggestion of using LUA_INIT.
|