Tutorial on changing screenset between controllers.

If you created a new screenset and want to share it with others then please post it here. You can talk about screens here.

Tutorial on changing screenset between controllers.

Postby Delco » Sun Feb 16, 2025 2:10 am

Is there a tutorial on how to change screensets between controllers , I have found a screen for the ATC but it is done for the UC300ETH-UB1 and I need to convert it to suit a UC300ETH_5LTP

I can find very little referecnce to anything regarding uccnc screensets anywhere on the web .

Are there any members on here who do upwork to help develop uccnc ?
Delco
 
Posts: 383
Joined: Tue Apr 02, 2019 4:23 am

Re: Tutorial on changing screenset between controllers.

Postby Delco » Mon Feb 17, 2025 7:45 am

Any documentation ??????????????????
Delco
 
Posts: 383
Joined: Tue Apr 02, 2019 4:23 am

Re: Tutorial on changing screenset between controllers.

Postby ger21 » Mon Feb 17, 2025 3:14 pm

I just posted this in another thread.

If it's a screen specifically for the UB1, and no other controllers, open it in Notepad, Find and replace UC300ETH_UB1 with UC300ETH_5LPT.
Done.

If it's a screen specifically for the UB1, and no other controllers, open it in Notepad, Find and replace UC300ETH_UB1 with UC300ETH_5LPT.
Done.

If you want to add a controller to a screen, copy the entire section for an existing controller, from the beginning, like this:
//REGION UC300ETH_5LPT
if (mainform.userselecteddevtype == UC100.DeviceType.UC300ETH_5LPT || mainform.userselecteddevtype == UC100.DeviceType.Demo_UC300ETH_5LPT)
.....
.....


To the end:

//ENDREGION UC300ETH_5LPT



And just replace the controller name with the one you want. (I changed the color of what needs to be changed.)


Note that the diagnostic page will need to be edited in the screen editor for it to work correctly.

And some controllers have more features than others.
So if you copy a UC100 screen for a UC300, you'll be missing some things.
And if you copy a UC300 screen for use with a UC100, there will be features on the screen that are not supported by the UC100.
Gerry
UCCNC 2022 Screenset - http://www.thecncwoodworker.com/2022.html
ger21
 
Posts: 2739
Joined: Sat Sep 03, 2016 2:17 am

Re: Tutorial on changing screenset between controllers.

Postby Delco » Tue Feb 18, 2025 9:51 am

Thanks Gerry , I was going to try that BUT didnt know if everything would be right , if its only the diagnostics thats not too bad.

Is there any way to identify the diagnostic page sections like a label that could be searchable . I couldnt work out what the structure of the file is.
Delco
 
Posts: 383
Joined: Tue Apr 02, 2019 4:23 am

Re: Tutorial on changing screenset between controllers.

Postby ger21 » Wed Feb 19, 2025 5:10 pm

Unfortunately, screen pages or sections are not grouped together. Only types of objects are grouped together, like fields, buttons, checkboxes, .....
This is basically how I create my screensets. I develop for one controller, than copy and paste for each individual controller.

Once I have all the controllers in the file, I then use the screen editor to edit the Diagnostics and other things.
Gerry
UCCNC 2022 Screenset - http://www.thecncwoodworker.com/2022.html
ger21
 
Posts: 2739
Joined: Sat Sep 03, 2016 2:17 am


Return to Custom Screensets

Who is online

Users browsing this forum: Bing [Bot] and 3 guests