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.


Pages (27): « First < Previous 1 [2] 3 4 5 6 Next > Last »
Search Results
Post Author Forum Replies Views Posted []
  Thread: Enumerations
Post: RE: Enumerations

I just tried widget:box(23) and got the results I'd expect from widget:box(3), which looks like it must be FL_DOWN_BOX. One of the first tests I did with murgaLua was displaying all of the available ...
mikshaw MurgaLua - General 5 8,213 06-07-2007, 09:07 AM
  Thread: best way to list filenames in Lua?
Post: best way to list filenames in Lua?

It just occurred to me that it looks like Lua proper doesn't seem to have any way (or any obvious way) to list filenames in a given directory. I was attempting to grab all *.txt files in a director...
mikshaw MurgaLua - General 4 34,251 06-07-2007, 10:23 AM
  Thread: best way to list filenames in Lua?
Post: RE: best way to list filenames in Lua?

I decided, after a long google session, to just go with what I have, which is using io.popen("ls"). It is definite...there is no directory listing in Lua. If someone happens to want to run this scri...
mikshaw MurgaLua - General 4 34,251 06-07-2007, 04:43 PM
  Thread: best way to list filenames in Lua?
Post: RE: best way to list filenames in Lua?

Although I was hoping that the script could also work with Lua proper, this is definitely a better solution than popen. I was just pushing hard to avoid anything outside of pure Lua in this case. ...
mikshaw MurgaLua - General 4 34,251 06-08-2007, 01:35 AM
  Thread: best way to list filenames in Lua?
Post: RE: best way to list filenames in Lua?

okie dokie... To grab the filenames of all *.txt files in a given directory, this seems to be the most effective way: allfiles=murgaLua.readDirectory("/home/mik") for i=1,table.maxn(allfiles) do i...
mikshaw MurgaLua - General 4 34,251 06-08-2007, 09:33 AM
  Thread: match one of three possible substrings?
Post: match one of three possible substrings?

It doesn't look like this is possible, but i'm often wrong =o) In Bash you can use *.{png,jpg,gif} to match any of 3 possible filename extensions. Can this be done in Lua? What I have right now wor...
mikshaw MurgaLua - General 3 6,184 06-10-2007, 05:33 AM
  Thread: match one of three possible substrings?
Post: RE: match one of three possible substrings?

Thanks for the pointers. It still seems to be overkill to first match all similar extensions, including ppf, ppg, pnf, png, pig, pif, jng, jif, ... ...and then check for the three desired extensions...
mikshaw MurgaLua - General 3 6,184 06-11-2007, 12:44 AM
  Thread: match one of three possible substrings?
Post: RE: match one of three possible substrings?

I made some apparent progress using a nested loop, although I'm not sure that it is truly progress in the sense of processor/memory usage [code] allfiles=murgaLua.readDirectory(realdatadir) imgty...
mikshaw MurgaLua - General 3 6,184 06-11-2007, 03:20 AM
  Thread: gallery of demos updated
Post: RE: gallery of demos updated

That's very cool. I have had 2 problems with the photo gallery so far, though: 1) The download link says photo_gallery.lua, but the filename is actually photogallery.lua 2) It seems to choke on l...
mikshaw MurgaLua - General 7 13,320 06-12-2007, 01:34 AM
  Thread: gallery of demos updated
Post: RE: gallery of demos updated

A note about the drag-and-drop demo... If you use Fl_Double_Window() for w, rather than Fl_Window(), it will reduce or eliminate the flicker caused while dragging. I think this depends on whether or ...
mikshaw MurgaLua - General 7 13,320 06-12-2007, 05:35 AM
  Thread: CGI work in progress
Post: RE: CGI work in progress

I'm worn out on this particular script for now, so I'll post it in its current state (which should be a little bit more useful than the above) The attached archive includes an example page
mikshaw MurgaLua - General 1 5,856 06-13-2007, 02:15 PM
  Thread: Which FLTK version in murgaLua?
Post: Which FLTK version in murgaLua?

I just noticed the FLTK documentation included with MurgaLua 0.4.1 is for FLTK 1.1.8 rather than the current stable 1.1.7. This doesn't bother me at all, I was just curious if you actually used 1.1.8....
mikshaw MurgaLua - General 7 10,818 06-14-2007, 07:45 AM
  Thread: Which FLTK version in murgaLua?
Post: RE: Which FLTK version in murgaLua?

Thanks. That word "LOT" in caps makes me think there's probably a lot of bugfixes. Downloading....
mikshaw MurgaLua - General 7 10,818 06-15-2007, 12:58 AM
  Thread: Which FLTK version in murgaLua?
Post: RE: Which FLTK version in murgaLua?

If you're willing to do that, it could be fun to experiment with it. Thanks. At the very least it would be an opportunity to become more familiar with what is happening in 2.0 development, since I don...
mikshaw MurgaLua - General 7 10,818 06-15-2007, 12:11 PM
  Thread: Current state and planned features, please read - UPDATED
Post: RE: Current state and planned features, please rea...

It's my understanding that this thread was created to let us know what is currently in development. Since this thread was made after the latest murgaLua version was released, I assume that murgaLua.sl...
mikshaw MurgaLua - General 13 21,352 06-17-2007, 10:45 AM
  Thread: Escape Key exits window
Post: RE: Escape Key exits window

I haven't found anything in the FLTK documentation that I could see relating to it, but the "keyboard" c++ application that comes with the FLTK source will not close when Esc is pressed. I don't yet k...
mikshaw MurgaLua - General 6 13,652 06-22-2007, 07:38 AM
  Thread: Escape Key exits window
Post: RE: Escape Key exits window

What is the purpose of checking for event 12? (FL_DEACTIVATE?)
mikshaw MurgaLua - General 6 13,652 06-23-2007, 01:34 AM
  Thread: drawing graphics in murgaLua
Post: RE: drawing graphics in murgaLua

That's pretty cool! I'm not sure what the while loop does, though. I had to force the app to close, and received this message (not an error, but a message): [quote]/usr/bin/murgaLua: ./draw.lua:26: ...
mikshaw MurgaLua - General 16 29,727 06-23-2007, 06:00 AM
  Thread: Escape Key exits window
Post: RE: Escape Key exits window

This could be a very useful way to make a more friendly application. point 1: Many people are accustomed to pressing Esc to cancel an action or close a transient window, but not so much to close a ma...
mikshaw MurgaLua - General 6 13,652 06-23-2007, 06:22 AM
  Thread: drawing graphics in murgaLua
Post: RE: drawing graphics in murgaLua

Hmmm..... The first one exits immediately. If I remove the "else os.exit(0)" then it shows a blank window which doesn't appear to accept any events. The second one results in a segmentation faul...
mikshaw MurgaLua - General 16 29,727 06-23-2007, 12:38 PM
Pages (27): « First < Previous 1 [2] 3 4 5 6 Next > Last »