Machsupport Forum

Mach Discussion => Mach4 General Discussion => Topic started by: Rimmel on May 26, 2022, 10:03:15 AM

Title: LUA - add button to disabled whilst running policy
Post by: Rimmel on May 26, 2022, 10:03:15 AM
I have added a buttion to the main screen but like many other buttons I do not want it active whilst cnc gcode is running or when the axis are being controlled manually. Any pointers would be appreciated.

Thanks  :)
Title: Re: LUA - add button to disabled whilst running policy
Post by: SwiftyJ on May 26, 2022, 01:04:59 PM
In the properties of the button there is 'Enabled States'. Just select 'Idle' and the button will only be enabled when the state is idle
Title: Re: LUA - add button to disabled whilst running policy
Post by: Rimmel on May 26, 2022, 02:31:15 PM
In the properties of the button there is 'Enabled States'. Just select 'Idle' and the button will only be enabled when the state is idle

Thank you