Combo Box Font Size Error

If you think you've found a bug post it here.

Combo Box Font Size Error

Postby ger21 » Sun Nov 06, 2016 2:34 pm

If you change the font size of a Combo box to 22pt, it automatically changes the size to 21.75pt.
If you save the screen with the font size at 21.75, the screen will not load, with an error message.
Gerry
UCCNC 2022 Screenset - http://www.thecncwoodworker.com/2022.html
ger21
 
Posts: 2730
Joined: Sat Sep 03, 2016 2:17 am

Re: Combo Box Font Size Error

Postby cncdrive » Mon Nov 07, 2016 10:07 pm

I have just checked and can reproduce this issue.
It is caused by an idiotness in the .NET framework. :)
That the value of the font size read back from the font selection box is not correct and not even integer, e.g. 16pt size reads as 15.75pt.
We've made a cast to integer for this for other screen elements to avoid this issue, but forgot to do it for the Combobox.
I will add this type casting to the Combo box now to correct this issue.
And I think I will also add a cast conversion when read back and set this property in the screen editor, so then this will also only appear the proper integer values in the screen editor window eventhough the readback values are not integers.
cncdrive
Site Admin
 
Posts: 4985
Joined: Tue Aug 12, 2014 11:17 pm

Re: Combo Box Font Size Error

Postby ger21 » Mon Nov 07, 2016 11:34 pm

I just changed them all myself in the editor once I figured out what was happening.
And it's very simple if you change one, and then make copies.
Gerry
UCCNC 2022 Screenset - http://www.thecncwoodworker.com/2022.html
ger21
 
Posts: 2730
Joined: Sat Sep 03, 2016 2:17 am

Re: Combo Box Font Size Error

Postby cncdrive » Tue Nov 08, 2016 10:27 am

ger21 wrote:I just changed them all myself in the editor once I figured out what was happening.
And it's very simple if you change one, and then make copies.


I think we also always copied those and is why we did not explore this issue.
And another workaround is to manually type in the Font size, because the issue is with selecting it in the Font selection box.
But anyways I already fixed it, will be OK in the next release.
cncdrive
Site Admin
 
Posts: 4985
Joined: Tue Aug 12, 2014 11:17 pm


Return to Report a bug

Who is online

Users browsing this forum: No registered users and 16 guests