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
 SPC Control Chart Tools for .Net
 SPC Chart Scrollbars
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

klawjr

8 Posts

Posted - 05 Jul 2007 :  12:34:17  Show Profile  Reply with Quote
I'm using an SPCBatchVariableControlChart. When the scrollbar is disabled, as new data is added the chart always shows the most recent data. If I show the scrollbar the new data is added off the screen. Normally I'd like the newest data to always be showing. I tried adding a checkbox so the user could turn on or off the scrollbar. It works but I really need to control the position of the scrollbar so when it is enabled, the most recent data is showing. Is there a way to set the position of the scrolling in the code?

quinncurtis

1164 Posts

Posted - 05 Jul 2007 :  12:58:29  Show Profile  Reply with Quote
Sorry, but we can see no way of implementing what you describe without making modifications to the underlying source code. The scrollbar has no public properties that allow you to control its current position. When enabled the scroll bar will always be initialized to its minimum value and the graph to its starting position.

It is trivial to make a reference to the scrollbar public though, and we will make that change in the next update of the software, scheduled for Aug 1.
Go to Top of Page

klawjr

8 Posts

Posted - 06 Jul 2007 :  11:47:08  Show Profile  Reply with Quote
Thanks for the help. I would very much appreciate if you would add the scrollbar reference in your next release.

Go to Top of Page

klawjr

8 Posts

Posted - 03 Sep 2007 :  10:16:19  Show Profile  Reply with Quote
Are you still planning an new release of SPC Control Chart Tools for .Net?

Will the new version include a public reference to the scrollbar?

Thanks,

Ken
Go to Top of Page

quinncurtis

1164 Posts

Posted - 04 Sep 2007 :  10:40:04  Show Profile  Reply with Quote
Yes, the QCSPCChart library has been updated to include the scroll bar as a accessible property. In the SPC***ControlChart classes it has the property name: HScrollBar1.

Below is a modified version of the TimeVariableControlCharts.XBarRChart example.

SimulateData();

/ Calculate the SPC control limits for both graphs of the current SPC chart (X-Bar R)
this.AutoCalculateControlLimits();
// Scale the y-axis of the X-Bar chart to display all data and control limits
this.AutoScalePrimaryChartYRange();
// Scale the y-axis of the Range chart to display all data and control limits
this.AutoScaleSecondaryChartYRange();
this.RebuildChartUsingCurrentData();

this.HScrollBar1.Value = this.HScrollBar1.Maximum-numdatapointsinview;

Go to Top of Page

klawjr

8 Posts

Posted - 05 Sep 2007 :  13:40:44  Show Profile  Reply with Quote
Great!

Has there been a new release? I could not find any indication of a new release on your web site or a place to download it from.

Thanks

Go to Top of Page

quinncurtis

1164 Posts

Posted - 05 Sep 2007 :  15:46:03  Show Profile  Reply with Quote
We do maintenance releases on average every couple of months, usually involving a bug fix or two. Changing a line or two in the code is isn't anything worth announcing on our the web site. You can download the current version of the software using the download links you were sent in an e-mail at the time your placed the order.
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