Hello Guest it is March 28, 2024, 10:45:25 AM

Author Topic: Help needed setting UI Tab focus  (Read 1290 times)

0 Members and 1 Guest are viewing this topic.

Help needed setting UI Tab focus
« 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?
Just makin' chips!
Re: Help needed setting UI Tab focus
« Reply #1 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.  >:(
Just makin' chips!
Re: Help needed setting UI Tab focus
« Reply #2 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