Hi, Your code seems to be right.
Does your dialog has a name, and it appears in the tblD table? Does the active dialog has a title bar? We use a Win32 function that checks for the "active caption". Best, Scuri Em ter, 5 de mar de 2019 às 14:14, <helen.wri...@atiras.com> escreveu: > > 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 > Iup-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/iup-users >
_______________________________________________ Iup-users mailing list Iup-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/iup-users