Programmatically Change Listbox Font Size in LabVIEW

Updated May 25, 2018

Reported In

Software

  • LabVIEW

Issue Details

  • How can I set the font size for a single row in a Listbox?
  • How can I set the font size for all the rows in a Listbox?

 

Solution

  1. On the block diagram, right-click the listbox and select Create»Property Node»Active Row»Active Row Number from the shortcut menu to create an Active Row property. 
  2. Right-click the Active Row Property Node and select Change To Write from the shortcut menu. You now can specify the active rows, or the rows that you want to edit.
  3. Right-click the input parameter of the Property Node and select Create»Constant from the shortcut menu: a numeric constant appears. 
  4. Type the index of the row you are interested in. By typing -2  all rows of the listbox will be selected as active rows.
  5. Right-click the multicolumn listbox and select Create»Property Node»Active Row»Cell Font»Size from the shortcut menu to create an Active Row Fonte Size Property.
  6. Right-click the Active Row Fonte Size Property and select Change To Write from the shortcut menu. You now can specify the font size for the active rows.
  7. Right-click the input parameter of the property and select Create»Constant from the shortcut menu to create a Numeric constant representing the font size you wish to set.
  8. Wire the error out output of the Active Row Property Node to the error in input of the Active Row Font Size Property Node.

WAS THIS ARTICLE HELPFUL?

Not Helpful