OK, so I have some LUA code in Windows:
Local function IdentifyActiveWindow() -- at this point the active window is
always an iup dialog
--depends on having names associated with all dialogs, which is true
local tblD, _ = iup.GetAllDialogs() --get dialog names, which are not
the same as their handles
for _, v in ipairs(tblD) do
d = iup.GetHandle(v)
if d.ACTIVEWINDOW == "YES" then
return d
end
end
end
local currdlg=IdentifyActiveWindow()
-- do some stuff which opens a window via another Windows program
currdlg.bringfront = "YES"
And it doesn't work... d.ACTIVEWINDOW never returns "YES"
So, I'm think I've misunderstood something somewhere but can't work out what...
And when it's pointed out I will turn bright read and crawl into a cave.
Helen
_______________________________________________
Iup-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/iup-users