Changing the Font of Items in a LabVIEW Multicolumn Listbox

Updated Aug 22, 2023

Environment

Software

  • LabVIEW Base
  • LabVIEW Full
  • LabVIEW Professional

I am using the multicolumn listbox in LabVIEW 6.0 or later. I want to change the font of all the items in the multicolumn listbox, but I can select only one item at a time with the Text tool. Is there any way to change the font of all the items in the multicolumn listbox at once?

You can change the font of all items in a multicolumn listbox interactively. Complete the following steps to make all elements of a multicolumn listbox bold.
1. Use the Positioning tool to click the multicolumn listbox.
2. Select Style»Bold from the Text Settings pull-down menu on the toolbar. Notice that all the items in the multicolumn listbox become bold.
In LabVIEW 8.0 or later, you also can use the Active Cell properties for multicolumn listboxes to change the font of all items programmatically. Complete the following steps to make all elements of a multicolumn listbox italic.
1. On the block diagram, right-click the multicolumn listbox and select Create»Property»Node»Active Cell»Active Cell from the shortcut menu to create an Active Cell property. Use this property to specify the active cells to which you want to apply the italic format.
2. Right-click the Active Cell property and select Change To Write from the shortcut menu. You now can specify the active cells, or the cells that you want to italicize.
3. Right-click the input parameter of the property and select Create»Constant from the shortcut menu. A cluster with two numeric constants appears.
4. Type -2 in each of the numeric constants. These values specify that you want to select all rows and columns of the multicolumn listbox as active cells.
5. Right-click the multicolumn listbox and select Create»Property Node»Active Cell»Cell Font»Italic from the shortcut menu to create an Italic property.
6. Right-click the Italic property and select Change To Write from the shortcut menu. You now can specify whether the active cells should be italic.
7. Right click the input parameter of the property and select Create»Constant from the shortcut menu to create a Boolean constant.
8. Use the Operating Tool to click the Boolean constant and change the Boolean value to TRUE.
9. Wire the error out output of the Active Cell property to the error in input of the Italic property.
10. Return to the front panel and click the Run button.