LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Change color of an item in Tree Control

I want to change the color of items in a tree control. There is a property for that:

You need to set the active tag: ActiveItemTag
And then set the ForeGround color or the BackGround color: CellFG, CellBG

That's what I do. But I get this error message:


Possible reason(s):

Error 1131 occurred at Property Node (arg 2) in Untitled 1


LabVIEW: You cannot use this property with this dialog control.

I can read it, but not able to set it. WHY?

See example: SetItemColorInTreeControl.vi


Nitrof
0 Kudos
Message 1 of 2
(3,233 Views)

Hello Nitrof,

You cannot use Property Nodes to customize the appearance of the dialog controls and indicators "because these controls use platform-specific drawing functions that do not support customization".

You will have to instead use the regular tree control found in the List & Table palette.

Khalid


Message 2 of 2
(3,233 Views)