Can the "Codeview" object read more lines of code?

Post anything you want to discuss with others about the software.

Can the "Codeview" object read more lines of code?

Postby iOne » Sun Mar 30, 2025 9:28 am

Hi Cncdrive,

I just migrated from ModbusEZ to the UCCNC Modbus Master plugin as the EZ does not work OK with the 1.2118 version. I wanted to take the opportunity to read and see the data of the VFD on the main screen. I tried placing them on top of the "Toolpathview" object but only "Textfield" objects are visible ("Label" objects and others are not, it looks like the "toolpathview" object is on top of everything and has the priority), so I ended up using a portion of the code view area by moving sideways the "Codeview" object and reducing the font size so I can see the whole width of code. It works well but it left a gap at the top and bottom due to the maximum amount of lines that the "Codeview" is set to display (My guess is that is set to display just the amount of lines necessary for the original font size). So the question is;

Is there a way to increase the number of lines that "Codeview" object can display so I can fill those gaps and read more code at the same time? See image below.

Modbus Data Area and Codeview.png
iOne
 
Posts: 37
Joined: Fri Sep 02, 2022 4:56 am

Re: Can the "Codeview" object read more lines of code?

Postby cncdrive » Sun Mar 30, 2025 11:44 pm

The number of lines a Codeview object displays is defined in the screenset file in the Codeview object definition, it has a height parameter.
cncdrive
Site Admin
 
Posts: 5121
Joined: Tue Aug 12, 2014 11:17 pm

Re: Can the "Codeview" object read more lines of code?

Postby iOne » Mon Mar 31, 2025 3:08 am

Thank you for replying.

Are you talking about inside the *.ssf file or in the screen editor as per below?

Also, does the software only read PNG files or can it read any other vector format to improve the resolution of the buttons and objects?

Screeneditor codeview.png
iOne
 
Posts: 37
Joined: Fri Sep 02, 2022 4:56 am

Re: Can the "Codeview" object read more lines of code?

Postby JefferyDickson » Mon Mar 31, 2025 4:39 am

If you have access to the screen editor, can you try resizing the Codeview object vertically to see if it dynamically adjusts and displays more lines?
JefferyDickson
 
Posts: 1
Joined: Mon Mar 31, 2025 4:35 am

Re: Can the "Codeview" object read more lines of code?

Postby iOne » Mon Mar 31, 2025 10:15 am

It is already to the size that I want, up to the top and bottom white lines, it just leaves those black margins which makes me assume that the field is already at the maximum lines that it can read.

Code Field Size.png
iOne
 
Posts: 37
Joined: Fri Sep 02, 2022 4:56 am

Re: Can the "Codeview" object read more lines of code?

Postby ger21 » Mon Mar 31, 2025 3:59 pm

Did you try changing the font size? Not sure if that will work, but I can't check right now.
Gerry
UCCNC 2022 Screenset - http://www.thecncwoodworker.com/2022.html
ger21
 
Posts: 2768
Joined: Sat Sep 03, 2016 2:17 am

Re: Can the "Codeview" object read more lines of code?

Postby cncdrive » Mon Mar 31, 2025 6:53 pm

Yes, if I recall 16 lines is the maximum number of lines, but I will check later.
This is because drawing all those characters require CPU time and memory and also because greater than that size would require more virtual bitmaps to be used in OpenGL which I did not want to implement.
cncdrive
Site Admin
 
Posts: 5121
Joined: Tue Aug 12, 2014 11:17 pm

Re: Can the "Codeview" object read more lines of code?

Postby iOne » Mon Mar 31, 2025 7:19 pm

Hi CNCDrive,

Yes I thought that that would be the case.

Can I ask again if the software only reads PNG files? I may go into the rabbit hole of redesigning the screenset in the future. Does it read any vector format?

Hi ger21,

Yes, changing the font size is what produces the problem. I had to make it smaller to make space for the VFD data. If I fill the space vertically then I cannot see the full code horizontally so the compromise is to have the blank space above and below. But my plan B (if the number of lines were not adjustable) is to fill those spaces with other data like more LEDs and sensors data.
iOne
 
Posts: 37
Joined: Fri Sep 02, 2022 4:56 am

Re: Can the "Codeview" object read more lines of code?

Postby cncdrive » Mon Mar 31, 2025 7:30 pm

It can read any image formats like png, jpg, bmp, but it can't read vector graphics like dxf, svg, eps etc.
cncdrive
Site Admin
 
Posts: 5121
Joined: Tue Aug 12, 2014 11:17 pm

Re: Can the "Codeview" object read more lines of code?

Postby iOne » Mon Mar 31, 2025 7:33 pm

Thank you for the quick reply. Would using something Hi Res like a Tiff format would affect the performance of the software?
iOne
 
Posts: 37
Joined: Fri Sep 02, 2022 4:56 am

Next

Return to General discussion about the UCCNC software

Who is online

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