Machsupport Forum

Mach Discussion => Mach4 General Discussion => Topic started by: patpat on June 01, 2017, 05:51:19 PM

Title: Help needed setting UI Tab focus
Post by: patpat on June 01, 2017, 05:51:19 PM
Hello All... I want to script a button press (or event) that will set focus on the "Jogging" tab (aka- tabJogging). The goal is to show the content of the tab when this new button is pressed. I'm guessing that it involves using scr.SetProperty('tabJogging',???, ???);
Any ideas on how to do this?
Title: Re: Help needed setting UI Tab focus
Post by: patpat on June 01, 2017, 06:49:11 PM
Never mind... I figured it out. Here's the answer:
 
Code: [Select]
scr.SetProperty("OperationsTabs", "Current Tab", "3")It's crazy that the int is really a string.  >:(
Title: Re: Help needed setting UI Tab focus
Post by: django013 on June 01, 2017, 11:29:04 PM
Glad you found the solution on yourself.

I do the same on synching different notebooks - changing the page of one nb changes pages in other nbs too.

Quote
It's crazy ...
No, it's LUA :D