lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hi Lukas,

> and this value should be transformed somehow into wxWidget object and into Lua/wx userdata ("class" - with a specific metatable)

You should probably look at wxNativeWindow class
(https://docs.wxwidgets.org/trunk/classwx_native_window.html), which
can "create a window from an existing native window handle." and then
use wxMessageDialog to reference the native window as its parent.

Paul.

On Mon, May 11, 2020 at 9:26 AM Procházka Lukáš Ing. <LPr@pontex.cz> wrote:
>
> Hello,
>
> this is specific for wxWidgets/Lua and Windows:
>
> Suppose that in WinAPI, windows are handled by HWND, which is a pointer.
>
> This pointer can be retrieved e.g. by "GetConsoleWindow()" (WinAPI function) - and this value should be transformed somehow into wxWidget object and into Lua/wx userdata ("class" - with a specific metatable) -
>
> - simply: I need e.g. GetConsoleWindow() (WinAPI, C) to become a parent of e.g. "wx.wxMessageBox()" (wxLua).
>
> How to achieve this?
>
> Best regards,
>
> Lukas
>
>
> --
> Ing. Lukáš Procházka | mailto:LPr@pontex.cz
> Pontex s. r. o.      | mailto:pontex@pontex.cz | http://www.pontex.cz | IDDS:nrpt3sn
> Bezová 1658
> 147 14 Praha 4
>
> Mob.: +420 702 033 396
> _______________________________________________
> lua-l mailing list -- lua-l@lists.lua.org
> To unsubscribe send an email to lua-l-leave@lists.lua.org
_______________________________________________
lua-l mailing list -- lua-l@lists.lua.org
To unsubscribe send an email to lua-l-leave@lists.lua.org