LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Combo Box Multi Line String

Do Combo Boxes support multi-line strings?  If you go to the properties of the Combo Box you can de-select "Limit To Single Line".  I thought this would mean that if I provided a multi-line string to the "Strings[]" Property node, then items in the list would have multiple lines, and selecting an item would provide a value of the control that had that multi-line string.  But in actuallity return characters are replaced with spaces, and the value of the control has a space where the return should be.

 

Attached is a VI in 2014 that demonstrates this for both the system, and modern Combo Box.  Select an item from the combo box, then run the VI.  Notice that the drop down has no return in the items to be selected, and the string value of the control doesn't either.

0 Kudos
Message 1 of 4
(3,915 Views)

Strange, if you right-click and select Edit Items ... the items and values are multi-lines!

 

Ben64

0 Kudos
Message 2 of 4
(3,894 Views)

It appears to work fine if you manually type in a multi-line string.

 

Edit: If you go in to customize the control, they are listed as multi line strings in the dropdown menu as well.  (Doesn't work for silver control)

0 Kudos
Message 3 of 4
(3,886 Views)

Such a good observation. It seems like that this functionality is strictly intended to avoid the user to manually insert the change of line while typing.

 

LV_Help.JPG

 

0 Kudos
Message 4 of 4
(3,831 Views)