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
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(
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
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