Quinn-Curtis Forums
Quinn-Curtis Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Tools for Microsoft .Net
 Real-Time Graphics Tools for .Net (VB and C#)
 Chart Color Question

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
   

T O P I C    R E V I E W
soundar Posted - 04 Feb 2008 : 07:30:15
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?
1   L A T E S T    R E P L I E S    (Newest First)
quinncurtis Posted - 04 Feb 2008 : 09:05:36
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)

Quinn-Curtis Forums © 2000-2018 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07