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
 QCChart2D and QCChart2D CF (VB and C#)
 How to clear a graph?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

PhoenixDaCat

14 Posts

Posted - 27 Feb 2005 :  13:15:02  Show Profile  Reply with Quote
I've been sitting infront of my PC for 12 hours now, so maybe i am just not seeing the wood for the trees. I can't work out, or find in the help docs how to clear a graph to start over. I've tried calling RTProcessVar.TruncateProcessVarDataset(0) (it's a dynamic graph), but that doesn't work.

I can't see a "clear" method on any of the classes that I am using.

quinncurtis

1164 Posts

Posted - 27 Feb 2005 :  14:07:26  Show Profile  Reply with Quote
Rather than use the work "clear", please describe in detail what you want to accomplish.

If you are asking about Real-Time Graphics for .Net classes you should be posting in the other forum.
Go to Top of Page

PhoenixDaCat

14 Posts

Posted - 28 Feb 2005 :  05:10:49  Show Profile  Reply with Quote
I guess I was talking about ChartView.ResetChartObjectList
Go to Top of Page

quinncurtis

1164 Posts

Posted - 28 Feb 2005 :  09:04:56  Show Profile  Reply with Quote
Were still not sure what you are trying to accomplish. On one hand, if clearing the entire graph area by removing the chart objects, the ResetChartObjList method will work.
Deleting the ChartView object by calling the ChartView.Dispose method is the better method since it guarantees that all objects attached to the view are removed, not just ones in the ChartObjList.

On the other hand, your experiment with the RTProcessVar.TruncateProcessVarDataset implied that you were trying to clear the plot area of some historical scrolling graph data, while leaving the other objects unaffected. This is acheived using the RTProcessVar.ProcessVarDataset.ResetBuffer() method.
Go to Top of Page

PhoenixDaCat

14 Posts

Posted - 28 Feb 2005 :  10:55:44  Show Profile  Reply with Quote
Thanks. I was trying to clear the plot area
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