LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

ListBox string character sizing

Solved!
Go to solution

I have a list box that contains strings up to 80 characters long.

I have to size the listbox width in the uir to be wide enough for 80 characters.

Any 80 numerical character combination is a constant legth, however, letters show up as different sizes and some are longer and some are shorter.

Is there a way to force all string characters to occupy the same width?

0 Kudos
Message 1 of 3
(3,139 Views)
You can edit the listbox in the UIR editor and apply a non-proportional font to the control (look in "Text style" button in listbox options): choose among the fonts available on your system the one that you prefer, considering that you may have problems if chosen the font is not available in the target system. In my system the following non-proportional fonts are available: Courier, Courier New, FixedSys, Lucida Console, NIEditor and NISystem: I think the majority of them are standard fonts, available on all systems.


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 3
(3,119 Views)
Solution
Accepted by topic author NI Nubie

Thanks you rule, AGAIN!

 

Brad.

0 Kudos
Message 3 of 3
(3,094 Views)