Hello Guest it is March 28, 2024, 08:49:37 PM

Author Topic: Order of tabs in a window  (Read 2833 times)

0 Members and 1 Guest are viewing this topic.

Offline Pedio

*
  •  200 200
    • View Profile
Order of tabs in a window
« 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
Re: Order of tabs in a window
« Reply #1 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).

Offline Pedio

*
  •  200 200
    • View Profile
Re: Order of tabs in a window
« Reply #2 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

Offline DazTheGas

*
  •  778 778
  • DazTheGas
    • View Profile
Re: Order of tabs in a window
« Reply #3 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 ;-)
New For 2022 - Instagram: dazthegas
Re: Order of tabs in a window
« Reply #4 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()
Re: Order of tabs in a window
« Reply #5 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?

Offline DazTheGas

*
  •  778 778
  • DazTheGas
    • View Profile
Re: Order of tabs in a window
« Reply #6 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
New For 2022 - Instagram: dazthegas

Offline Pedio

*
  •  200 200
    • View Profile
Re: Order of tabs in a window
« Reply #7 on: July 07, 2015, 05:42:08 PM »
Daz - Works! Thanks

 ;D

Offline Pedio

*
  •  200 200
    • View Profile
Re: Order of tabs in a window
« Reply #8 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

Offline DazTheGas

*
  •  778 778
  • DazTheGas
    • View Profile
Re: Order of tabs in a window
« Reply #9 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
New For 2022 - Instagram: dazthegas