Hello
Guest
it is
February 05, 2025, 10:44:56 AM
Guest
Login
Register
Menu
Home
Help
Search
Login
Register
YouTube
Machsupport Forum
/
Mach Discussion
/
Mach4 General Discussion
/
Order of tabs in a window
« previous
next »
Print
Pages:
1
Go Down
Author
Topic: Order of tabs in a window (Read 6924 times)
0 Members and 1 Guest are viewing this topic.
Pedio
200
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
Logged
Screwie Louie
166
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).
Logged
Pedio
200
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
Logged
DazTheGas
778
DazTheGas
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 ;-)
Logged
New For 2022 - Instagram: dazthegas
Screwie Louie
166
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()
Logged
Screwie Louie
166
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?
Logged
DazTheGas
778
DazTheGas
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
Logged
New For 2022 - Instagram: dazthegas
Pedio
200
Re: Order of tabs in a window
«
Reply #7 on:
July 07, 2015, 05:42:08 PM »
Daz - Works! Thanks
Logged
Pedio
200
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
Logged
DazTheGas
778
DazTheGas
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
Logged
New For 2022 - Instagram: dazthegas
Print
Pages:
1
Go Up
« previous
next »