Programming and Scripting :: tiny lua-fltk script



Damn! I should have figured out this, lol

I even submitted a flRun.lua I was doing without noticing this: the prize of not doing my homework and being able to make a simple search. :s

Anyway, if someone is interested or is involved in the same task, I made a near clone, with .flrun history file.

The most apparent lacking feature is the pulldown button and the lack of support for parameters for flRun itself (a la flRun --help ).

Or so I thougt: I noticed /opt/grun/consfile and /opt/grun/gassoc and I am guessing what are these good for.

BTW, I have difficulties trying to find sample code using pulldown menu buttons, neither in murgaLua nor c++, and I am having a hard time trying to grasp the concept.

Can anybody help, please?

Have you tried using fluid to see what it generates.
See mikshaw's fltk.uci extension.
Also look at the fltk site.

About fluid... well, I suppose it was a severe case of 'blinding fulgurant splendor of the rather obvious' on my part :s  I should have thought about it earlier.

Unfortunately that didn't help, but managed to overcome the issue anyway.

Fairly complete functional implementation already sent to Extensions

Would you be willing to post your script here (assuming it's Lua rather than C)?  I've never had much success with pulldown menus in murgalua, even with fluid, and would be interested in seeing something that works.  I'm particularly interested in the idea of dynamically created menus, but anything similar would probably be helpful.
Next Page...
original here.