Measurement Studio for VB6

Showing results for 
Search instead for 
Did you mean: 
Reply

How do you get and set the trace colors of a measurement studio graph control?

How do you get and set the trace colors of a measurement studio graph control?

Hi,

 

Am using a "graph" control (cwui.ocx) inside a vb.net program. I can set the individual trace colors in the property pages but I would like to both read and write these properties from the program. Any hints on syntax?

 

Thanks,

Bartj

0 Kudos
Message 1 of 3 (2,916 Views)
Reply
0 Kudos

Re: How do you get and set the trace colors of a measurement studio graph control?

Hi Bartj,

 

I think the property you are looking for is LineColor. Please refer to the code below.

 

  WaveformGraph1.Plots(0).LineColor = Color.Aquamarine

 

I hope this helps.

 

Regards,

 

Josh L.

 

Applications Engineer
National Instruments
0 Kudos
Message 2 of 3 (2,906 Views)
Reply
0 Kudos
Highlighted

Re: How do you get and set the trace colors of a measurement studio graph control?

Josh,

 

Thanks!

 

Bart

0 Kudos
Message 3 of 3 (2,897 Views)
Reply
0 Kudos