LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I dynamically change the color of the outer frame of a Waveform Graph?

Hello...  I don't see any property node for selecting the color of the "frame" that surrounds the plot.  Can the color of this "decoration" be changed programmatically? 

 

(Is this a job for an XControl?  I haven't played with these yet, so if there is a suitable example, please point me in the right direction). 

 

Thanks,

Alan

0 Kudos
Message 1 of 3
(2,671 Views)

I'll take your word that the property is not available, but before you jump into an XControl, try the following.  Turn the decoration that is part of the graph transparent and place a decoration on the FP in its place (ie. horizontal smoothbox).  Size it properly and then group it with the graph.  You can get the color properties of the decoration via Pane.Decorations[].  Index the Decorations array and then create a color property node.  Some trial and error to find the right array index if you have multiple decorations.  A bit of a pain, easier than an XControl (for me at least).

 

Someday we may be able to do this:

http://forums.ni.com/t5/LabVIEW-Idea-Exchange/Add-Explicit-Decoration-References-to-LabVIEW/idi-p/97...

 

 

0 Kudos
Message 2 of 3
(2,660 Views)

Thanks Darin, that's a great solution.  I have multiple graphs, so I can put the decorations & graphs in a cluster, and reference them through the cluster props, which includes a decorations array.

 

--Alan

0 Kudos
Message 3 of 3
(2,641 Views)