Machsupport Forum

Mach Discussion => Mach4 General Discussion => Topic started by: DazTheGas on October 12, 2015, 11:12:31 AM

Title: Mach4 GUI Handle
Post 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
Title: Re: Mach4 GUI Handle
Post by: DouglasDrew on October 14, 2015, 01:36:45 PM
Try wx.NULL

Doug
Title: Re: Mach4 GUI Handle
Post by: DazTheGas on October 14, 2015, 02:23:36 PM
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
Title: Re: Mach4 GUI Handle
Post by: poppabear on October 14, 2015, 09:28:24 PM
Don't know if this works but try:

wx.wxGetParent();

or

wx.wxGetGrandParent();

Scott
Title: Re: Mach4 GUI Handle
Post by: dude1 on October 15, 2015, 12:22:57 AM
http://docs.wxwidgets.org/trunk/classwx_window.html
http://ptgmedia.pearsoncmg.com/images/0131473816/downloads/0131473816_book.pdf