Page 1 of 1

Tutorial on changing screenset between controllers.

PostPosted: Sun Feb 16, 2025 2:10 am
by Delco
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 ?

Re: Tutorial on changing screenset between controllers.

PostPosted: Mon Feb 17, 2025 7:45 am
by Delco
Any documentation ??????????????????

Re: Tutorial on changing screenset between controllers.

PostPosted: Mon Feb 17, 2025 3:14 pm
by ger21
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.

Re: Tutorial on changing screenset between controllers.

PostPosted: Tue Feb 18, 2025 9:51 am
by Delco
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.

Re: Tutorial on changing screenset between controllers.

PostPosted: Wed Feb 19, 2025 5:10 pm
by ger21
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.

Re: Tutorial on changing screenset between controllers.

PostPosted: Sat Feb 22, 2025 3:20 am
by Delco
is there a file header ?

Would be nice to be able to find by page or tab ?

AS3.Addtab("", "Arial", "center", 24, 0, 9, 515, 130, 44, 84, 2, 1); is there a list that shows what each value field means ?

My other thought was to open a screenset and delete everything except the diagnostics tab and then copy that over the UB1 Section to allow it then to be renamed 5lpt