PxPlus User Forum

Main Board => Discussions => Programming => Topic started by: James Zukowski on March 18, 2019, 04:32:23 PM

Title: Font Size Changing
Post by: James Zukowski on March 18, 2019, 04:32:23 PM
When processing some panels from our menu program, the font sizes in (typically) Multi_Lines and List_Boxes are inconsistent -- even on the same machine. I just saw one that had everything fitting properly, then cycled through the menu, and it became a larger size, perhaps 1 or 2 points, but enough to overflow the field sizes.

Does anyone have any idea what might cause this? It's been plaguing us for months. This is the first time I've been able to see this dynamic a change, and there's nothing I've been able to find that might be the culprit.

PxPlus 13.10, RHE Linux 5, *nthost/*ntslave WindX
Title: Re: Font Size Changing
Post by: Mike King on March 18, 2019, 06:52:29 PM
We have seen similar situations caused by using relative font sizing not taking into account that changing the current font size impacts all subsequent fonts.

We generally suggest you only modify specific controls and not adjust font sizes during the execution of the application.  If you must adjust default font size don't use relative sizes as they are based on the current setting which will not be static since you are changing it.