Hello Guest it is March 29, 2024, 05:32:21 AM

Author Topic: Mach4 GUI Handle  (Read 2466 times)

0 Members and 1 Guest are viewing this topic.

Offline DazTheGas

*
  •  778 778
  • DazTheGas
    • View Profile
Mach4 GUI Handle
« 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
New For 2022 - Instagram: dazthegas
Re: Mach4 GUI Handle
« Reply #1 on: October 14, 2015, 01:36:45 PM »
Try wx.NULL

Doug

Offline DazTheGas

*
  •  778 778
  • DazTheGas
    • View Profile
Re: Mach4 GUI Handle
« Reply #2 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
New For 2022 - Instagram: dazthegas

Offline poppabear

*
  • *
  •  2,235 2,235
  • Briceville, TN, USA
    • View Profile
Re: Mach4 GUI Handle
« Reply #3 on: October 14, 2015, 09:28:24 PM »
Don't know if this works but try:

wx.wxGetParent();

or

wx.wxGetGrandParent();

Scott
fun times