User | Kudos |
---|---|
11 | |
10 | |
3 | |
3 | |
2 |
One of the annoyance of designing a UI is that you will never know for sure how it will look on another user computer.
For instance, you design your UI with the default 13 point font size and when a user that has it default font size set to say 16 (and with a different font type) open your UI everything is a mess (text run out of the screen, text overlay controls ...).
In built application (meaning in an exe) one can add the following line to the executable and this fix the problem by coercing the font type and size.
But what about a reusable tool that are basically a source code distribution?
Currently, the simplest way to ensure this outcome is to write a reusable VI that will recursively set the font size and type of every labels or string to be what you designed your UI to use. This VI has to be run by the UI every time it starts.
What I propose is to add a global VI settings (probably somewhere in the VI properties) that will persist whatever font settings was used to design the UI.
This setting should default to false.
The image above is one possible solution (the simplest one).
Another solution would be to explicitely defined what every font style&size should be for every font type (something very similar to the explicit definition one can use in an ini that I mentioned above). In that case, there could be an entirely new font category in the VI properties.
PJM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Re-opening because LabVIEW NXG has been discontinued.