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 616

Summary: Strange/Incorrect ChartRect when ScrollPager is being used
Product: VCL TeeChart Reporter: yeray alonso <yeray>
Component: ToolsAssignee: Steema Issue Manager <issuemanager>
Status: RESOLVED FIXED    
Severity: enhancement CC: chris, david
Priority: ---    
Version: 140220   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
URL: http://www.teechart.net/support/viewtopic.php?f=3&t=14717
Chart Series: --- Delphi / C++ Builder RAD IDE Version:

Description yeray alonso 2014-03-03 06:58:36 EST
Open the ScrollPager demo in the features demo.

1. Note the right of the subchart isn't aligned with the main chart.

2.If you unzoom or scroll the main chart, the ChartRect of the main chart gets smaller. Then, the left axis isn't aligned (neither the right axis). The chart has also a smaller height.

3. When in 2 (smaller ChartRect), if you open the editor, the chart gets big again. From now, scrolling or unzooming the chart doesn't make the main chart smaller any more.

4. When in 2 (smaller ChartRect), if you resize the form, the chart gets big again. Now, scrolling or unzooming the chart still makes the main chart smaller.

5. If you add a Title to the Left axis, it's cut because no extra margin is being added. And adding extra margin manually through the editor has no effect.
Comment 3 david berneda 2014-03-13 12:23:30 EDT
Fixed. Now ScrollPager correctly aligns the both "ChartRect" (the main chart and the scroller chart).

Internally, main ParentChart.CustomChartRect:=True is no longer used. This was the cause of multiple problems.

Instead, the scrollpager tool resets its parent chart ChartRect at the very beginning of the paint process (BeforeDrawChart event), and it only modifies the ChartRect Bottom field (or Right field for vertical scrollpager).

Main ParentChart "MarginLeft,Top,Right,Bottom" values are also applied, so they can be used to customize the spacing between both charts.