Contents  All Classes  Index A-Z  All Units


TCustomChart.ZoomRect
TCustomChart

procedure ZoomRect(Const Rect: TRect);

Unit
Chart

Description
The ZoomRect method does zoom on Chart contents. The Rect parameter defines the pixel rectangle coordinates of the chart area to be zoomed. Calling this method is similar to manually drawing a zoom box at run-time by dragging the left mouse button.

You can perform a zoom in by specifying a Rect parameter enclosed on Chart dimensions, and zoom out by specifying a bigger rectangle parameter.

Zoom in example:

Chart1.ZoomRect( Rect( 5,5,Chart1.Width-5,Chart1.Height-5 ) );

Zoom out example:

Chart1.ZoomRect( Rect( -5,-5,Chart1.Width+5,Chart1.Height+5 ) );


Submit your feedback about this page.

Copyright 1995-2007 © by Steema Software. All Rights Reserved.