Page 1 of 1

Zoom IN with a rectangle from bottom right to upper left?

Posted: Mon Nov 24, 2008 9:28 pm
by 14048359
Hi,

it is possible to zoom in by dragging a rectangle from top left to bottom right. However, any "negative" rectangle will undo all zoom.

Is it possible to zoom by dragging a rectangle from any other corner (top right to bottom left, bottom left to upper right, bottom right to upper left)?

If not, what should I implement in order to have such a feature?

Thanks

Posted: Tue Nov 25, 2008 8:04 am
by narcis
Hi Qwerty,

Yes, you could try disabling standard zooming features:

Code: Select all

      tChart1.Zoom.Allow = false;
And then use ZoomRect:

Code: Select all

      tChart1.Zoom.ZoomRect(Rect);
You could define the rectangle using TChart's mouse events: MouseDown, MouseUp, etc.

Hope this helps!