Quinn-Curtis Forums
Quinn-Curtis Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Tools for Microsoft .Net
 Real-Time Graphics Tools for .Net (VB and C#)
 Chart Color Question
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

soundar

51 Posts

Posted - 04 Feb 2008 :  07:30:15  Show Profile  Reply with Quote
In the ScrollApplication1 example (VB), if I change the line
currentTemperature1 = New RTProcessVar("Temp 1", New ChartAttribute(Color.Green, 1.0, DashStyle.Solid, Color.Green))

to color.red, the line color does not change. What is the purpose of this attribute?

quinncurtis

1586 Posts

Posted - 04 Feb 2008 :  09:05:36  Show Profile  Reply with Quote
That sets a default color for the RTProcessVar. Usually that color is overridden when you create a scrolling graph, or some other indicator, for the variable. In the case of a scrolling graph, the color of the scrolling line plot is set using the ChartAttribute of the SimpleLinePlot used to create the plot, attrib1 in the example below.

Dim attrib1 As New ChartAttribute(ccColor_, 1, DashStyle.Solid)
Dim lineplot1 As New SimpleLinePlot(ccTransform, Nothing, attrib1)
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Quinn-Curtis Forums © 2000-2018 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07