Machsupport Forum

Mach Discussion => Mach4 General Discussion => Topic started by: Pedio on July 04, 2015, 11:52:09 AM

Title: Order of tabs in a window
Post by: Pedio on July 04, 2015, 11:52:09 AM
Is there a way I can move the Jog tab to be the first tab on the OperationsTabs window? I would like for this to be the first one to appear when I start the machine.

I have tried moving it in Screen Tree Manager but I have not had any success.

Thanks,
Peter
Title: Re: Order of tabs in a window
Post by: Screwie Louie on July 05, 2015, 10:11:52 AM
Hi Pedio!  Yep...you can do it in the screen tree manager. You have to take the other tabs before jogging and drop them to the end (or below jogging).
Title: Re: Order of tabs in a window
Post by: Pedio on July 05, 2015, 03:40:28 PM
I tried that and it was very erratic on how it worked. when I finally got it to work (and rebooted Mach4) all of the buttons on the tabs had disappeared??? I had a backup  ;D
Title: Re: Order of tabs in a window
Post by: DazTheGas on July 06, 2015, 06:26:38 AM
In your screen load script place

function SetJogTab()
    local inst = mc.mcGetInstance();
    scr.SetProperty('OperationsTabs', 'Current Tab', '3')
end

In your PLC script place

if testcount == 5 then SetJogTab() end

DazTheGas <----- Dont put that ;-)
Title: Re: Order of tabs in a window
Post by: Screwie Louie on July 06, 2015, 12:48:34 PM
Ahhh, I see. So you set the OperationsTabs to display the jogging tab upon screen load by making the current tab = jogging tab.

Yah, I went back and my stuff was missing too. Sorry Pedio.

Thanx Daz.    DazTheGas()
Title: Re: Order of tabs in a window
Post by: Screwie Louie on July 07, 2015, 12:26:00 AM
well technically, set current tab to 3 on the fifth scan of the PLC; to wit the PLC calls the function defined in the screen load up script....right?
Title: Re: Order of tabs in a window
Post by: DazTheGas on July 07, 2015, 01:15:22 AM
yep its just a fallback to make sure the screen has finished loading first, had mixed results without it

DzTheGas
Title: Re: Order of tabs in a window
Post by: Pedio on July 07, 2015, 05:42:08 PM
Daz - Works! Thanks

 ;D
Title: Re: Order of tabs in a window
Post by: Pedio on July 07, 2015, 05:43:24 PM
BTW - will I need to redo this the next time Mach4 is upgraded? I am starting to keep a list.

P
Title: Re: Order of tabs in a window
Post by: DazTheGas on July 08, 2015, 04:52:36 PM
if your profile is wxmach then yes this will get overwritten, if you have a custom profile then you will be ok.

DazTheGas