Hello Guest it is May 08, 2021, 12:25:17 AM

Author Topic: Mach4 New Tabs  (Read 3549 times)

0 Members and 1 Guest are viewing this topic.

Offline DazTheGas

*
  •  753 753
  • DazTheGas
    • View Profile
Mach4 New Tabs
« on: September 06, 2015, 12:30:41 PM »
Finally in 4.2.0.2673 the mach team has found the wxAuiNotebook Class to make the tabs look pretty, I had already coded them into my screen, and the old mach wxnotebook tabs looked dull against them as in first pic, but now look a lot better. (second pic)

But unfortunately mach4 now starts off on the wrong screen and so have I to put scr.SetProperty('Screens', 'Current Tab', '0') in the Screen Load Script.

DazTheGas
Theres always time for a choccy biccy

Offline Mauri

*
  •  327 327
    • View Profile
Re: Mach4 New Tabs
« Reply #1 on: September 06, 2015, 06:52:22 PM »
Das,
Where do you put the scr.SetProperty('Screens', 'Current Tab', '0') ?
I tried it in a number of places and it still comes up with that Probing Screen?
Regards,
Mauri.

Offline DazTheGas

*
  •  753 753
  • DazTheGas
    • View Profile
Re: Mach4 New Tabs
« Reply #2 on: September 07, 2015, 03:13:56 AM »
Go into edit screen - highlight the screen name in the top left pane and click the thunder bolt in the bottom pane you should now see the screen load script.

DazTheGas
Theres always time for a choccy biccy

Offline DazTheGas

*
  •  753 753
  • DazTheGas
    • View Profile
Re: Mach4 New Tabs
« Reply #3 on: September 07, 2015, 04:29:05 AM »
Sorry just realized, if your using any of the stock screens then you need scr.SetProperty('MainTabs', 'Current Tab', '0')  not Screens, as thats what mine are called.

Daz
Theres always time for a choccy biccy
Re: Mach4 New Tabs
« Reply #4 on: November 12, 2015, 12:32:24 AM »
I was kindly directed to this thread by blockhead.

I've tried adding the scr.SetProperty('MainTabs', 'Current Tab', '0') at the end of the Screen Load Script.

Still coming up with the Probing Screen every time I startup Mach4.

I've tried every variation I can think of including different tab numbers but no luck.

Any further thoughts on this little problem would be most appreciated.

Leo

Offline dude1

*
  •  1,253 1,253
    • View Profile
Re: Mach4 New Tabs
« Reply #5 on: November 12, 2015, 01:40:31 AM »
what version are you useing

Offline DazTheGas

*
  •  753 753
  • DazTheGas
    • View Profile
Re: Mach4 New Tabs
« Reply #6 on: November 12, 2015, 01:55:21 AM »
on some versions the mach remembers what tab was showing when you leave the screen editor, if you go into screen editor highlight the start screen change something and then use the save screen from the drop down menus, this normally corrects the problem for me.

Daz
Theres always time for a choccy biccy
Re: Mach4 New Tabs
« Reply #7 on: November 12, 2015, 03:35:24 AM »
I'm using Mach4 version 2686 because I'm using an Ethernet Smooth Stepper and was having troubles with the newer versions of Mach4.

I have made many attempts to use the screen editor to save the desired tab as you described Dez, but none have worked so far.


I'm wondering if I should try the latest version of Mach4 again now that I've got motor and spindle control back.  Hopefully there will be a new version of the ESS plugin soon!

Leo

Offline dude1

*
  •  1,253 1,253
    • View Profile
Re: Mach4 New Tabs
« Reply #8 on: November 12, 2015, 03:38:49 AM »
no don't change you may just need to reinstall, it may off gone bad. make sure you do a backup first.
Re: Mach4 New Tabs
« Reply #9 on: November 12, 2015, 03:41:12 AM »
Thanks blockhead, I'll give that a try.