Hello Guest it is April 18, 2024, 04:23:57 AM

Author Topic: Mach4 New Tabs  (Read 5207 times)

0 Members and 1 Guest are viewing this topic.

Offline DazTheGas

*
  •  778 778
  • 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 »
New For 2022 - Instagram: dazthegas

Offline DazTheGas

*
  •  778 778
  • 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
New For 2022 - Instagram: dazthegas
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.