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
 chart font problem on own winform project.
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

sfy

14 Posts

Posted - 11 Jul 2008 :  13:16:18  Show Profile  Reply with Quote
Hi,It's my first topic on this forum,and we appreciate this wondfull SPC Chart library.Now,we are going to pruchase it if the puzzeld questions of us will be removed recently:
When I run the example "Quinn-Curtis\DotNet\QCSPCChart\Visual CSharp\examples\TimeVariableControlCharts",the "XBarSigmaChart" chart displays perfectly,but when I create a winform project and copy the file "XBarSigmaChart.cs" to this project,put it on the Form and run it,as a result,the text font on the chart is too large to see straight.
It seemed that I can not paste a iamge capture on this post,:(

By the way,I use VS2005 C#.
Any help will be appreciated.

My MSN:fangyuanshen@hotmail.com
Thanks a lot.

go

sfy

14 Posts

Posted - 11 Jul 2008 :  13:20:22  Show Profile  Reply with Quote
By the way,the library we used comes from "Trial_QCSPCChartR1x7.zip".

go
Go to Top of Page

sfy

14 Posts

Posted - 11 Jul 2008 :  13:29:15  Show Profile  Reply with Quote
I have sent the image capture to support@quinn-curtis.com.
Thanks a lot.

go
Go to Top of Page

quinncurtis

1164 Posts

Posted - 11 Jul 2008 :  16:49:41  Show Profile  Reply with Quote
That is a sign that the control is being instantiated small, then resized larger, forcing a font size resize that will distort the chart. The chart should be instantiated at the size of its initial display on the form.

In the XBarSigmaChart constructor make sure you call this.Dock = DockStyle.Fill before you initialize the chart, as the code below, extracted from the TimeVariableControlCharts.XBarSigmaChart example.

public XBarSigmaChart()
{
	// This call is required by the Windows.Forms Form Designer.
	// TODO: Add any initialization after the InitForm call			
	InitializeComponent();

	// Have the chart fill parent client area
	this.Dock = DockStyle.Fill;

	// Define and draw chart
	InitializeChart();
}


Double click on the XBarSigmaChart user control in the Solution Explorer of your project to display the control in design mode. Resize it to be approximately the size it should appear at runtime in your program. If either, or both of these suggestions fail to work, there is something else wrong with your project. You will have to send us the complete project as a zip file so that we can debug it. Make sure you remove everything in the example not associated with the chart.
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