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 1582 - Cursortool and custom axes
Summary: Cursortool and custom axes
Status: RESOLVED FIXED
Alias: None
Product: VCL TeeChart
Classification: Unclassified
Component: Tools (show other bugs)
Version: unspecified
Hardware: PC Windows
: --- enhancement
Target Milestone: v2016.19
Assignee: Steema Issue Manager
URL: http://www.teechart.net/support/viewt...
Keywords:
Depends on:
Blocks:
 
Reported: 2016-07-19 05:27 EDT by yeray alonso
Modified: 2016-10-17 05:50 EDT (History)
0 users

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


Attachments
test project (1.58 KB, application/x-zip-compressed)
2016-07-19 05:27 EDT, yeray alonso
Details

Note You need to log in before you can comment on or make changes to this bug.
Description yeray alonso 2016-07-19 05:27:56 EDT
Created attachment 620 [details]
test project

Having a series using CustomAxes and a CursorTool, the tool can't be dragged because, as the customer found, TTeeCustomToolSeries.GetHorizAxis and TTeeCustomToolSeries.GetVertAxis functions don't check CustomAxes:

    Function TTeeCustomToolSeries.GetHorizAxis:TChartAxis;
    begin
      if Assigned(FSeries) then
         result:=FSeries.GetHorizAxis
      else
      with ParentChart do
      begin
        if HasActiveSeries(BottomAxis) then
           result:=BottomAxis
        else
        if HasActiveSeries(TopAxis) then
           result:=TopAxis
        else
           result:=BottomAxis;
      end;
    end;