mje Posted October 29, 2013 Report Share Posted October 29, 2013 I'm annoyed by a particular behavior of LabVIEW in that it seems to resize controls from the system palette if the operating system's font settings are changed, and how sometimes this resizing is handled rather poorly. For example: The left half is the intended UI, and the right is what happens if the OS is set to a font size of 125%. Don't even get me started on 150%, the amount of whitespace a UI needs to leave at 100% to support a 50% increase in size is just rediculous. There's really two things going on here that I don't like. The system ring controls clip when font size is not 100%. This is visible in the controls that have the strings "Insulin_ChainA" or "Rel Fract Uptake" displayed. Note however the combo box renders correctly. Doubt I can do anything about this, but this behavior strikes me as unintended. The other issue is the resizing of my image based controls. They're derived from system palette controls because I wanted the hover effect on them. All of them are set to not show the boolean text (even so boolean text properties are left empty), yet still they are resized by the font settings. Is there any way to prevent this? As I see it with the image control resizing I can either go back and re-create them such that they're bigger and won't be resized at 125%, or maybe force them into submission by programmatically setting their size, or just ditch system controls (thus losing the automatic hover effects) and hope other controls don't have this resize behavior (confirmation anybody?). Vector based graphics would also help but... Quote Link to comment
Popular Post Neil Pate Posted October 29, 2013 Popular Post Report Share Posted October 29, 2013 (edited) Fonts in LV do suck quite a bit. I use system style controls exclusively for GUI type FPs. I normally shove these settings into my LabVIEW.ini and app.ini file appFont = "0" 13 dialogFont = "2" 13 systemFont = "1" 13 BDFont = "2" 13 This way the fonts are consistent between OSs that do and do not support high res fonts (i.e. WinXP). I have just tested it out with Win7 set to 150% (I normally use 100%) and it also works fine. These keys also stop the BD getting messed up when a VI is edited on a WinXP and then a Win7 machine (due to font size differences). Note: I have only a vague understanding of what these keys actually do, but they work for me I think these settings force the app to use the fonts specified, and the sizes, so they are not affected by font changes. I have seen similar settings where the actual font is specified (i.e. appFont = "Tahoma" 13 etc) Not sure this is exactly what you are after, but its worth a try. Edited June 1, 2021 by Neil Pate Added the correct line breaks to the ini file contents 4 Quote Link to comment
mje Posted October 29, 2013 Author Report Share Posted October 29, 2013 Sweet. I was aware of those ini keys but had no idea that they would keep LabVIEW from honoring the OS font scaling settings. Kudos to you, sir! I do however wish I knew what the "0", "1", etc meant in place of the font name, I hadn't seen that syntax before. I'll add that the settings don't appear to solve the issue with the ring controls clipping however, but that I can live with. Quote Link to comment
Neil Pate Posted October 29, 2013 Report Share Posted October 29, 2013 Glad that helped. I seem to recall somebody on the darkside (Christina?) telling me (or somebody else, memory no good these days) that the number is like an index into some global font list or something. 1 Quote Link to comment
todd Posted October 30, 2013 Report Share Posted October 30, 2013 The numbers kind of line up with these: 1 Quote Link to comment
LogMAN Posted October 30, 2013 Report Share Posted October 30, 2013 Glad that helped. I seem to recall somebody on the darkside (Christina?) telling me (or somebody else, memory no good these days) that the number is like an index into some global font list or something. So I'm on the dark side now? http://lavag.org/topic/16925-controls-change-positions-on-runtime-system/?p=103828 neil, I am your father... maybe... Quote Link to comment
Neil Pate Posted October 30, 2013 Report Share Posted October 30, 2013 So I'm on the dark side now? http://lavag.org/topic/16925-controls-change-positions-on-runtime-system/?p=103828 neil, I am your father... maybe... That thread is from June, I told you my memory was bad I do seem the recall a thead on the darkside discussing fonts and this was where I first learned this tip. Of course I cannot find the thread anymore. Thanks for the reminder though, Anakin. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.