Hello Guest it is May 11, 2021, 06:59:50 PM

Author Topic: Mach4 New Tabs  (Read 3565 times)

0 Members and 1 Guest are viewing this topic.

Offline DazTheGas

*
  •  753 753
  • DazTheGas
    • View Profile
Re: Mach4 New Tabs
« Reply #10 on: November 12, 2015, 07:34:57 AM »
Its not bad install 2686 had a bug and using the set tab cures it.

scr.SetProperty('MainTabs', 'Current Tab', '0')  needs to be in startup script

Daz
« Last Edit: November 12, 2015, 07:38:34 AM by DazTheGas »
Theres always time for a choccy biccy

Offline DazTheGas

*
  •  753 753
  • DazTheGas
    • View Profile
Re: Mach4 New Tabs
« Reply #11 on: November 12, 2015, 08:44:12 AM »
Actually just remembered, in 2686 it had to be moved to the PLC script and done in the first run section at the bottom of the script.

Daz
Theres always time for a choccy biccy
Re: Mach4 New Tabs
« Reply #12 on: November 12, 2015, 07:01:05 PM »
Thanks Daz!

I'll give this a try.

Leo
Re: Mach4 New Tabs
« Reply #13 on: November 12, 2015, 07:20:17 PM »
It worked!

Although my first attempt caused my chosen tab to keep re-selecting itself when I tried to click on any of the others.

Putting the sir.SetProperty('MainTabs', 'Current Tab', '0') statement within the test condition "if testrun==1" (or something like that) solved the problem.

Thanks again Daz.