Hello
Guest
it is
May 25, 2025, 09:46:08 AM
Guest
Login
Register
Menu
Home
Help
Search
Login
Register
YouTube
Machsupport Forum
/
Mach Discussion
/
Mach4 General Discussion
/
Mach4 GUI Handle
« previous
next »
Print
Pages:
1
Go Down
Author
Topic: Mach4 GUI Handle (Read 5147 times)
0 Members and 1 Guest are viewing this topic.
DazTheGas
778
DazTheGas
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
Logged
New For 2022 - Instagram: dazthegas
DouglasDrew
2
Re: Mach4 GUI Handle
«
Reply #1 on:
October 14, 2015, 01:36:45 PM »
Try wx.NULL
Doug
Logged
DazTheGas
778
DazTheGas
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
Logged
New For 2022 - Instagram: dazthegas
poppabear
2,235
Briceville, TN, USA
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
Logged
fun times
dude1
1,253
Re: Mach4 GUI Handle
«
Reply #4 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
Logged
Print
Pages:
1
Go Up
« previous
next »