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 1703 - TChartScrollBar with THorizBarSeries doesn't allow dragging to the minimum
Summary: TChartScrollBar with THorizBarSeries doesn't allow dragging to the minimum
Status: CONFIRMED
Alias: None
Product: VCL TeeChart
Classification: Unclassified
Component: Other Components (show other bugs)
Version: 20.170306
Hardware: PC Windows
: --- enhancement
Target Milestone: ---
Assignee: Steema Issue Manager
URL: http://www.teechart.net/support/viewt...
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-30 10:24 EST by yeray alonso
Modified: 2016-11-30 12:34 EST (History)
1 user (show)

See Also:
Chart Series: ---
Delphi / C++ Builder RAD IDE Version:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description yeray alonso 2016-11-30 10:24:04 EST
Using the following code, if you drag the TChartScrollBar to the bottom, the left axis scrolls to show the bar at pos 5, but there more values below.

uses Chart, TeeScroB, Series;

var Chart1: TChart;
    ScrollBar1: TChartScrollBar;
    horizBar1: THorizBarSeries;

procedure TForm1.FormCreate(Sender: TObject);
begin
   Chart1 := TChart.Create(Self);
   Chart1.Parent := Self;
   Chart1.Align := alClient;

   horizBar1:=Chart1.AddSeries(THorizBarSeries) as THorizBarSeries;
   horizBar1.FillSampleValues(20);
   horizBar1.AutoBarSize:=True;

   Chart1.Axes.Left.SetMinMax(0, 5);

   ScrollBar1 := TChartScrollBar.Create(Self);
   ScrollBar1.Parent := Self;
   ScrollBar1.Align := alRight;
   ScrollBar1.Kind := sbVertical;
   ScrollBar1.Width := 17;
   ScrollBar1.Min := 0;
   ScrollBar1.Max := 100;
   ScrollBar1.Chart := Chart1;
   ScrollBar1.RecalcPosition();
end;