Site News :: LuaFLTK Tutorial



Now posted in the documentation section:

luaFLTK_reference.uci  

Created by our very own, mikshaw.
   A very cool Lua 4.0 / FLTK live demo, reference, template like system to help fill the need for the "missing Lua/FLTK manual"
Use the standard method, mydsl-load. Enjoy. Thanks, mikshaw.

:D

I'm still eternally tweaking it, of course.
Some things I'm presently attempting to deal with....

1) The display window is a multiline input so that it can be edited, but input apparently does not allow you to jump automatically back to the first line, so it initially displays the bottom portion of the script. Input also does not allow keyboard use of buttons (input always retains focus for some reason), so there is currently little keyboard support. I'm working to fix both of these issues by using a Hold_Browser instead of Multiline_Input. This will just make saving an edited file a little more complicated (for me, not you), and editing itself will be done in a separate field, which may seem unnatural for some people.

2) Currently overwrites any existing file without confirmation during a save, and doesn't let you know when the target file is not writeable...these will be fixed eventually.

3) I don't like the idea of using a wrapper of one language to manage a script of another language...hope to get that sorted out soon so i can reduce and simplify.

4) I have a need to make applications as keyboard-friendly as possible.  Lua-FLTK is not the keyboardiest thing available, but it's not too shabby.  I still have a lot of work to do here.

Have you guys seen murgaLua ?

http://www.murga.org/devPages/murgaLua/index.html

It is based on recent versions of Lua and Fltk and seems to be a little nicer than luaFltk.

The downside is that it comes bundled with an old (?) version of SqLite.

I had never heard of it.  Thanks. I'm definitely going to check it out.  I've been hoping that lua-fltk would be in continuing development (using newer fltk, implementing more widgets and completing some of the unfinished ones), but so far no changes since the first release in 2001.
The inclusion of sqlite is something i could do without, but 500k isn't bad at all.

My initial impressions....

It needs a little work, but overall is much more flexible than lua-fltk while being only slightly larger.
It should be rebuilt for DSL, to work with the older xft and png libraries, and maybe to use the existing sqlite.

It also has what appears to be a bug, which should have been obvious to the developer.  In both DSL and Suse (haven't tested in Slackware yet) the examples which include "murgaLua.*" fail with a message attempt to index global 'murgaLua' (a nil value).  Maybe there's something else that needs to be done, but I haven't seen any mention of it.

Next Page...
original here.