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#)
 Resize smaller?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

chadb

6 Posts

Posted - 22 Nov 2003 :  02:08:08  Show Profile  Reply with Quote
Is there some way to figure out the minimum resize for a graph? We have our graph as a pane in our application - and the graph won't resize very small.

I'm using chartVu.SetResizeMode(ChartObj.AUTO_RESIZE_OBJECTS);

Do I need to manually resize? Or set some other options?

Thanks,

Chad

quinncurtis

1164 Posts

Posted - 22 Nov 2003 :  10:03:10  Show Profile  Reply with Quote
The ChartView class has a default minimum size because if you don't have one, users will immediately create graphs that they resize to 0. This will cause floating point overflows as the chart shrinks into a black hole.

The default minimum size for a ChartView is 200x200 pixels. You can change the default minimum size by calling the ChartView.SetMinimumSize method, specifying the new minimum size as a Size object.

this.SetMinimumSize( new Size(100,100));

It is recommended that you not take these values below 100x100.



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