Steema Issues Database

Note: This database is for bugs and wishes only. For technical support help, if you are a customer please visit our online forums;
otherwise you can use StackOverflow.
Before using this bug-tracker we recommend a look at this document, Steema Bug Fixing Policy.



Bug 937

Summary: Allow the TSelectorTool to resize the chart from any of the 4 edges and the 4 sides
Product: VCL TeeChart Reporter: yeray alonso <yeray>
Component: ToolsAssignee: Steema Issue Manager <issuemanager>
Status: CONFIRMED ---    
Severity: enhancement    
Priority: Low    
Version: unspecified   
Target Milestone: ---   
Hardware: Other   
OS: Other   
URL: http://www.teechart.net/support/viewtopic.php?f=1&t=15205
Chart Series: --- Delphi / C++ Builder RAD IDE Version: Delphi 7

Description yeray alonso 2014-09-30 05:43:08 EDT
When you set the TSelectorTool AllowResizeChart property to True, you can 
resize the Chart, but only dragging the bottom-right edge.
The customer asks if there is "a way to resize it by saying dragging the right 
edge out or bottom edge down"

uses Chart, TeeComma, Series, TeeSelectorTool, TeeConst;

var Chart1: TChart;
    Commander1: TTeeCommander;

procedure TForm1.FormCreate(Sender: TObject);
begin
  Caption:=TeeMsg_Version;

  Commander1:=TTeeCommander.Create(Self);
  Commander1.Parent:=Self;
  Commander1.Align:=alTop;
  Chart1:=TChart.Create(Self);
  Chart1.Parent:=Self;
  Chart1.Align:=alClient;
  Commander1.Panel:=Chart1;

  Chart1.View3D:=false;
  Chart1.AddSeries(TBarSeries).FillSampleValues();
  (Chart1.Tools.Add(TSelectorTool) as TSelectorTool).AllowResizeChart:=True;
end;