Page 1 of 1

Combo Box Font Size Error

PostPosted: Sun Nov 06, 2016 2:34 pm
by ger21
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.

Re: Combo Box Font Size Error

PostPosted: Mon Nov 07, 2016 10:07 pm
by cncdrive
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.

Re: Combo Box Font Size Error

PostPosted: Mon Nov 07, 2016 11:34 pm
by ger21
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.

Re: Combo Box Font Size Error

PostPosted: Tue Nov 08, 2016 10:27 am
by cncdrive
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.