>  And now I’m confused, because after hours of testing, the damned thing
is working…

  Kkkkkkk OK!

Em ter, 5 de mar de 2019 às 15:37, <helen.wri...@atiras.com> escreveu:

> Yes, my dialog has a name and it appears in the tblD table:
>
>
>
> tblD => (table #3)
>
>           [1] => "Choose Facts"
>
>           [2] => "Enter Age"
>
>           [3] => "Multifact"
>
>
>
> The active dialog is Multifact in this instance.
>
>
>
> The active dialog has a title bar “Multifact”.
>
>
>
> The dialog is constructed using a wrapper that ensure that ‘dialog title’
> = ‘name’
>
>
>
> And now I’m confused, because after hours of testing, the damned thing is
> working…
>
>
>
> Sorry to trouble you but at least you’ve confirmed my code seems to be
> right.
>
>
>
>
>
>
>
>
>
> *From:* Antonio Scuri <antonio.sc...@gmail.com>
> *Sent:* 05 March 2019 17:58
> *To:* IUP discussion list. <iup-users@lists.sourceforge.net>
> *Subject:* Re: [Iup-users] Using ACTIVEWINDOW for a dialog
>
>
>
>   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
>
_______________________________________________
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users

Reply via email to