* fiddling with some lua sources

For users to report plugin bugs and request plugin enhancements; and for authors to test new/new versions of plugins, and to discuss plugin development (in the Programming Technicalities sub-forum). If you want advice on choosing or using a plugin, please ask in General Usage or an appropriate sub-forum.
Post Reply
avatar
justone
Diamond
Posts: 82
Joined: 05 Mar 2006 14:42
Family Historian: None

fiddling with some lua sources

Post by justone » 16 Feb 2013 19:00

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

User avatar
Jane
Site Admin
Posts: 8440
Joined: 01 Nov 2002 15:00
Family Historian: V7
Location: Somerset, England
Contact:

fiddling with some lua sources

Post by Jane » 16 Feb 2013 19:30

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.
Jane
My Family History : My Photography "Knowledge is knowing that a tomato is a fruit. Wisdom is not putting it in a fruit salad."

User avatar
tatewise
Megastar
Posts: 27075
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

fiddling with some lua sources

Post by tatewise » 16 Feb 2013 20:02

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' }
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

Post Reply