PlotLab VCL
How to use TSLScope->ZoomBy method ?
Thread Starter: Eric Z. Started: 4/16/2007 1:51 PM UTC
Replies: 4
How to use TSLScope->ZoomBy method ?
Hi,
I recently install the PlotLab 3 beta 2 (on Borland C++ Builder 2006) in an old application and everything is fine : congratulation for the backward compatibility.

I need to implement a zoom menu like this :
500 %
200 %
150 %
100 %
 80 %
 50 %
 ... to change Y axis zoom factor only.

I see that ZoomBy method is overloaded and thougth that ZoomBy(double, double)
would do the trick but a can not find any documentation on this new method.

Can you provide an example to do such a menu ?

Thanks,
 Eric
Re: How to use TSLScope->ZoomBy method ?
Hi Eric,

The V 3.0 has all those documented. At least in the case of this method the documentation should be good enough. The value is coefficient, so 2 zooms by 200%, and 0.5 zooms to 50%.

Cheers,
   Boian


Eric Z. wrote:
Hi,
I recently install the PlotLab 3 beta 2 (on Borland C++ Builder 2006) in an old application and everything is fine : congratulation for the backward compatibility.
I need to implement a zoom menu like this :
500 %
200 %
150 %
100 %
 80 %
 50 %
 ... to change Y axis zoom factor only.
I see that ZoomBy method is overloaded and thougth that ZoomBy(double, double)
would do the trick but a can not find any documentation on this new method.
Can you provide an example to do such a menu ?
Re: How to use TSLScope->ZoomBy method ?
Thanks Boian,
but i was talking of the differences between these functions found in SLScope.hpp:
virtual void __fastcall ZoomBy(double Value)/* overload */;
virtual void __fastcall ZoomBy(double Value, bool SaveHistory)/* overload */;
virtual void __fastcall ZoomBy(double XValue, double YValue)/* overload */;
virtual void __fastcall ZoomBy(double XValue, double YValue, bool SaveHistory) = 0 /* overload */;
virtual void __fastcall ZoomTo(double XMin, double XMax, double YMin, double YMax)/* overload */;
virtual void __fastcall ZoomTo(double XMin, double XMax, double YMin, double YMax, bool SaveHistory) = 0 /* overload */;



Re: How to use TSLScope->ZoomBy method ?
Eric Zunino wrote:
Thanks Boian,
but i was talking of the differences between these functions found in SLScope.hpp:

virtual void __fastcall ZoomBy(double Value)/* overload */;
Zooms by a scale and saves the old zoom in the Undo history.

virtual void __fastcall ZoomBy(double Value, bool SaveHistory)/* overload */;

Zooms by a scale and optionally saves the old zoom in the Undo history.

virtual void __fastcall ZoomBy(double XValue, double YValue)/* overload */;

Zooms by a X and Y scale and saves the old zoom in the Undo history.

virtual void __fastcall ZoomBy(double XValue, double YValue, bool SaveHistory) = 0 /* overload */;

Zooms by a X and Y scale and optionally saves the old zoom in the Undo history.


virtual void __fastcall ZoomTo(double XMin, double XMax, double YMin, double YMax)/* overload */;

Zooms to a XMin/XMax, YMin/YMax values and saves the old zoom in the Undo history.


virtual void __fastcall ZoomTo(double XMin, double XMax, double YMin, double YMax, bool SaveHistory) = 0 /* overload */;

Zooms to a XMin/XMax, YMin/YMax values and optionally saves the old zoom in the Undo history.
Resolved: How to use TSLScope->ZoomBy method ?
Many thanks, Boian.

That what I guess by myself after looking in SLScope.hpp .
But in BDS 2006 C++ personality, the name of parameters are not visible that's why I ask the forum.

Is there a way to change topic to [Resolve] How to use ... ?