Page 1 of 1

fiddling with some lua sources

Posted: 16 Feb 2013 19:00
by justone
I did ask Mike by IM but he suggested to better ask in here.
Since I'm still looking for something to replace iup_pplot I recently tried all the sources available for the various packages such as IM, CD, IUP and so on availalbe from sourceforge.
And when use the iuplua_cdlua.wlua from the CD package it actually does all I need and looks promissing, if it wouldn't always freeze the whole FH on closing the example.
As long as I close the example script using the close button everything works find but it using the close icon on the title bat the window closes but the debugger tells me it's running and the debugger itself is unable to break.

Anyone with an idea? Jane? Some other LUA expert?

ID:6759

fiddling with some lua sources

Posted: 16 Feb 2013 19:30
by Jane
I suspect it's probably not closing out the window properly, low tech solution turn off the close button, or add the code you do in the close button to the exit window button, you'll need to check the attribute/function for this in the CD documentation.

fiddling with some lua sources

Posted: 16 Feb 2013 20:02
by tatewise
In other words the close_cb action function should be the same as the Close button action function.
i.e.
iup.dialog { close_cb = btnStop.action }

To remove Window Close X, along with Minimize and Maximize use:
iup.dialog { menubox = 'NO' }