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 - Strange/Incorrect ChartRect when ScrollPager is being used
Summary: Strange/Incorrect ChartRect when ScrollPager is being used
Status: RESOLVED FIXED
Alias: None
Product: VCL TeeChart
Classification: Unclassified
Component: Tools (show other bugs)
Version: 140220
Hardware: PC Windows
: --- enhancement
Target Milestone: ---
Assignee: Steema Issue Manager
URL: http://www.teechart.net/support/viewt...
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-03 06:58 EST by yeray alonso
Modified: 2014-03-13 12:23 EDT (History)
2 users (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 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.