LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

String array resize incorrectly at different screen resolutions

I have a string array indicator on my screen, and my screen resolution is 1280x1024. As the application should work well on screens with smaller resolutions, I checked all three boxes in the "VI properties" cathegory" Window size. When I switch to lower resolution (i.e. 1024x768), the string array indicator resizes  correctly. However, when I switch back to High resolution, the control does not resize but stays big. If I repeat the switch between High and low resolutions, the control keeps getting bigger! Is that a bug or I am doing something incorrectly?
 
I am attaching an example. The left control is numerical array, which always rsizes correctly, the right - string array which gets bigger with every switch.
0 Kudos
Message 1 of 4
(2,632 Views)
Looks like a bug....
0 Kudos
Message 2 of 4
(2,627 Views)

If it is a bug, is there any way of going around it? Say, a patch?

Or I'll have to do it programatically, say I look at the size of the numeric indicator and resize the (somehow) the size of the element in the array/

0 Kudos
Message 3 of 4
(2,625 Views)
I think the problem occurs if the vertical string indicator size tries to become smaller than the font height, at which point the vertical size is coerced to the height of a single line (=proportionally too big). When you later increase the vertical size of the window again it scales from the coerced size and thus stays too big.
 
You should design your front panel at the smallest size you expect to see and then set that size as the minimum panel size. This ensure that your string indicators don't get out of proportion.
 
(Personally, I don't like to scale most objects with the panel, except for e.g. graphs.)
0 Kudos
Message 4 of 4
(2,621 Views)