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 63 - ColorBandTool in a TScrollPagerTool not updated on TAxisArrowTool's OnClick event.
Summary: ColorBandTool in a TScrollPagerTool not updated on TAxisArrowTool's OnClick e...
Status: RESOLVED NOTABUG
Alias: None
Product: FireMonkey TeeChart
Classification: Unclassified
Component: Tools (show other bugs)
Version: 131016
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Steema Issue Manager
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-28 07:55 EDT by narcís calvet
Modified: 2013-10-28 09:14 EDT (History)
0 users

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


Attachments
XE4 project (77.20 KB, application/x-zip-compressed)
2013-10-28 07:55 EDT, narcís calvet
Details

Note You need to log in before you can comment on or make changes to this bug.
Description narcís calvet 2013-10-28 07:55:47 EDT
Created attachment 8 [details]
XE4 project

I'd like to move TScrollPagerTool's ColorBandTool to the end of the chart when TAxisArrowTool's OnClick event is fired. Changing it manually doesn't work, ColorBand goes back to its original position:

void __fastcall TForm3::ChartTool1Click(TAxisArrowTool *Sender, bool AtStart)
{
  float fWidth = scrollPager1->ColorBandTool->EndValue - scrollPager1->ColorBandTool->StartValue;

  scrollPager1->ColorBandTool->StartValue = ChartTool1->Axis->Maximum - fWidth;
  scrollPager1->ColorBandTool->EndValue = ChartTool1->Axis->Maximum;
}

Attached a project reproducing the issue.
Comment 1 narcís calvet 2013-10-28 09:14:17 EDT
The problem is due to this line:

  ChartTool1->Axis =  scrollPager1->SubChartTChart->BottomAxis;

Changing it to:

  ChartTool1->Axis =  Chart1->Axes->Bottom;

The ColorBand moves accordingly.