Machsupport Forum
Mach Discussion => Mach4 General Discussion => Topic started by: DazTheGas on October 12, 2015, 11:12:31 AM
-
A bit of a long shot here, but is there anybody that knows how to retrieve the wxWindow handle for mach4 using lua/wxlua
got a small macro that needs to get input from the user, however it needs the wxWindow handle to run.
DazTheGas
-
Try wx.NULL
Doug
-
It needs the handle of the current active mach4 gui. there is a command mcGuiGetWindowHandle but that is at the api level where we cant go from lua.
DazTheGas
-
Don't know if this works but try:
wx.wxGetParent();
or
wx.wxGetGrandParent();
Scott
-
http://docs.wxwidgets.org/trunk/classwx_window.html
http://ptgmedia.pearsoncmg.com/images/0131473816/downloads/0131473816_book.pdf