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 & .Net Compact Framework
 Real-Time Graphics Tools for .Net (VB and C#)
 Real Time Graphs - disable/enable line plots
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

kluden

1 Posts

Posted - 29 Jun 2005 :  14:08:29  Show Profile  Reply with Quote
I am planning to use your real time graph product to display a number of parameters.

There will be a number of gas concentrations displayed (similar to your ScrollApplication1 example, but with about 10 lines). I would like to be able to selectively hide each concentration without losing the data. As an example, I could have a button for each concentration that toggles between 'display' and 'hide'. Operating any button will either hide or display the historical line and continue updating as new data is acquired.

My first thoughts were to change the line colour to that of the background, but I have not been able to find a method for changing the line colour in real time.

Can you suggest some practical approaches?

kluden

kluden

quinncurtis

1164 Posts

Posted - 29 Jun 2005 :  14:39:15  Show Profile  Reply with Quote
You can disable a plot object using the ChartObjEnable property. See question #4 in the FAQ's, http://www.quinn-curtis.com/QCChart2DCFFAQs.htm.

Using the objects in the ScrollApplication1 example program:

ChartAttribute attrib1 = new ChartAttribute (Color.Yellow, 3,DashStyle.Solid);
SimpleLinePlot lineplot1 =  new SimpleLinePlot(pTransform1, null, attrib1);
lineplot1.SetFastClipMode( ChartObj.FASTCLIP_X);
RTSimpleSingleValuePlot solarPanelLinePlot1 = new RTSimpleSingleValuePlot(pTransform1,lineplot1, currentTemperature1);
chartVu.AddChartObject(solarPanelLinePlot1);
.
.
.
// Disable - hide - the plot at some point		
solarPanelLinePlot1.ChartObjEnable = ChartObj.OBJECT_DISABLE;.
.
.
.
// Enable - show - the plot at some point
solarPanelLinePlot1.ChartObjEnable = ChartObj.OBJECT_ENABLE;
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Quinn-Curtis Forums © 2000-07 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07