From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

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,239 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,239 Views)