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
 Fonts, etc.
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

klawjr

8 Posts

Posted - 19 Aug 2007 :  16:01:59  Show Profile  Reply with Quote
I've integrated your Batch Variable Control Charts into our application. On my development system the charts look great - they auto-scale well and are always very readable.

On the lower-resolution monitors we sell with our gaging systems they are hard to read. The fonts are too small, not bold, etc.

I tried setting the SPCGeneralizedTableDisplay.DefaultTableFont which worked except I'm using the TABLE_STRIPED_COLOR_BACKGROUND with the table. The size of the stripes do not track with the larger default font. Is there a way to get them to track each other?

Also, I'd like to keep using the general ability of your SPC charts to auto-scale themselves, etc. What is the simplest way to make all the fonts either bold or larger, etc. while allowing the auto-scaling to work.

Thanks for any help you can give me.

quinncurtis

1164 Posts

Posted - 20 Aug 2007 :  09:58:38  Show Profile  Reply with Quote
The table stripes (actually it's the row line increment) is not tied to the font size, and needs to be set independently of that. The two properties you would use are the the SPC charts ChartTable.TextRowSpacing (controls row line increment of the header lines of text) and the ChartTable.NumericRowSpacing (controls the row line incrment for the numeric rows that follow the header rows. The values are set using graph normalized coordinates, i.e. a fraction of the overall graph windows. The default values are

this.ChartTable.TextRowSpacing = 0.035; // row height 0.035 of chart window height
this.ChartTable.NumericRowSpacing = 0.03; // row height 0.03 of chart window height


if these values are too small for the font you choose, you should make them bigger:

this.ChartTable.TextRowSpacing = 0.045;
this.ChartTable.NumericRowSpacing = 0.04;

Keep in mind, if you increase the line spacing, you end up DECREASING the amount of room left for the chart. If you find the chart is too small, you must either reducing the line spacing, or remove some lines from the table using the various flags for doing that described in the manual.

Go to Top of Page

klawjr

8 Posts

Posted - 21 Aug 2007 :  10:19:53  Show Profile  Reply with Quote
Thanks for the help.

Regarding my second question: My general problem is that everything is hard to read - the table information, and both the primary and secondary charts, etc. I'm thinking if I just set all text to bold and increase the line thickness on the charts, etc. that might do the trick. I need some direction on this. I've read the documentation but its pretty sparse.

For example, should I use templates? Can you point me to any examples the use templates? What overall approach would you suggest?
Go to Top of Page

quinncurtis

1164 Posts

Posted - 21 Aug 2007 :  11:41:12  Show Profile  Reply with Quote
We aren't really sure what the problem is. It sounds something that is specific to some some low resolution graphics display you are using. What is the resolution of the display you are using ?

You already know how to set the default table font. That gives you ability to make the text bold. There is no single template that controls the chart text, since they are all sized differently. You can individually set all of the chart objects in graphs, see below.

this.PrimaryChart.SetControlLimitsLabelFont(new Font(FontFamily.GenericSansSerif, 14, FontStyle.Bold));
this.PrimaryChart.MainTitle.SetTextFont(new Font(FontFamily.GenericSansSerif, 22, FontStyle.Bold));
this.PrimaryChart.XAxisLab.SetTextFont(new Font(FontFamily.GenericSansSerif, 18, FontStyle.Bold));

this.PrimaryChart.ProcessVariableData.LineMarkerPlot.LineColor = Color.Green;
this.PrimaryChart.ProcessVariableData.LineMarkerPlot.LineWidth = 5;


Go to Top of Page

klawjr

8 Posts

Posted - 21 Aug 2007 :  12:28:10  Show Profile  Reply with Quote
The monitor resolution is 1024 X 768.

I will set the various object properties individually until I get a good look.

Thanks for the help.
Go to Top of Page

quinncurtis

1164 Posts

Posted - 21 Aug 2007 :  13:43:18  Show Profile  Reply with Quote
We ran our example program using a monitor at 1024 X 768 resolution and everything was perfectly readable at the default settings. The default size of the form of the BatchAttributeControlCharts example program is only 968 x 680, so it easily fits in a 1024 x 768 display.

Are you compiling the chart using a Form1 size that is much larger than 968 x 680, and then resizing the form to fit on the 1024 x 768 display? This would cause our font resizing routines to re-scale the fonts and line thicknesses to be much smaller than initially set. This could be why yours is so small. The proper way to our SPC Chart templates is to compile the program with the size the form at the final size you want it displayed at. It can be resized after the form is visible.
Go to Top of Page

klawjr

8 Posts

Posted - 03 Sep 2007 :  10:18:45  Show Profile  Reply with Quote
Thanks you - I will try that.
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