Hello Guest it is May 14, 2021, 07:01:18 PM

Author Topic: Mach4 GUI Handle  (Read 1793 times)

0 Members and 1 Guest are viewing this topic.

Offline DazTheGas

*
  •  753 753
  • 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
Theres always time for a choccy biccy
Re: Mach4 GUI Handle
« Reply #1 on: October 14, 2015, 01:36:45 PM »
Try wx.NULL

Doug

Offline DazTheGas

*
  •  753 753
  • 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
Theres always time for a choccy biccy

Offline poppabear

*
  • *
  •  2,233 2,233
  • Briceville, TN, USA
    • View Profile
    • S S Systems, LLC
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
Commercial Mach3 & Mach 4, Design/Build/Retrofit CNC and Industrial machines.
http://www.ss-systems-llc.com/