Re: [Iup-users] GetParam with Native Windows in lua

2020-02-28 Thread Antonio Scuri
When you do elem.attrib = value In IupLua Is more or less the same as iup.SetAttribute(elem, "ATTRIB", value) But if value is a Ihandle, the metamethod in Lua will automatically finds the name or even assign a name to an Ihandle and set that name as attribute for you. So you don't have

Re: [Iup-users] GetParam with Native Windows in lua

2020-02-28 Thread Jane Taubman
Thanks. Ok, I have found a work around for IupMessageAlarm, by creating a "parent" dialog in iup whose parent is the main application. However I can not work out how to access the iup dialog name to use in SetAttribute which wants a string. If I use an IUP dialog as the parent for iup.Getparam(

Re: [Iup-users] GetParam with Native Windows in lua

2020-02-28 Thread Antonio Scuri
Hi, *PARENTDIALOG *is the name of a dialog in IUP. In IupLua, if you set an IUP object Ihandle as attribute will automatically finds its name, or even generates a name, and do the association. For example, parent_dialog1 = iup.dialog{... child_dialog = iup.dialog{ parentdialog = parent_dial

[Iup-users] GetParam with Native Windows in lua

2020-02-28 Thread Jane Taubman
Back in June Antonio posted IupAlarm and IupGetParam internally use IupDialogs, but both are functions that create and show pre-defined dialogs. Usually they are configured through a callback (IupGetParam) or global attributes (IupAlarm). Although they are not NATIVEPARENT friendly. It will be n