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 not
simple to use NATIVEPARENT with them, but it is possible, at least for
IupGetParam.
I am using function which returns a light user object which can be used
with standard dialogues using
h = fhGetContextInfo("CI_PARENT_HWND")
iup.SetAttribute(filedlg, "NATIVEPARENT",h); -- Set the parent window
handle
where filedlg is a standard iup dialog.
However using
iup.SetGlobal("PARENTDIALOG",fhGetContextInfo("CI_PARENT_HWND"))
fails saying it wants a string and not a light user object.
I also get the same problem with
local h=fhGetContextInfo('CI_PARENT_HWND')
local r = iup.MessageAlarm(h, 'Question' , sQuestion..'?', 'YESNO')
Is there a way to get from the light user object I have to something usable
with these dialogues please.
--
Jane.
Jane Taubman | www.rjt.org.uk | www.taubman.org.uk | www.fhug.org.uk
_______________________________________________
Iup-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/iup-users