How to find the axis on which the selector is ?

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
bertrod
Advanced
Posts: 151
Joined: Wed Sep 07, 2005 4:00 am

How to find the axis on which the selector is ?

Post by bertrod » Fri Feb 10, 2006 11:06 am

Hello,

I see in the properties of the selector that it is possible to get the Annotation or the series which is selected, but there is no "axis" properties.

How can I know the axis selected ? (I should precise that some axis of my chart have more than one Series, that's why i can't use the Series property).

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Fri Feb 10, 2006 12:17 pm

Hi bertrod,

Could you please be more specific on that? We don't understand what do you exactly mean.

Thanks in advance.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

bertrod
Advanced
Posts: 151
Joined: Wed Sep 07, 2005 4:00 am

Post by bertrod » Fri Feb 10, 2006 12:28 pm

On my chart, I'm trying to manage the double-click on different things :

Code: Select all

procedure myChart.dblClick(Sender: TObject);
begin
  if assigned(selector.annotation) then
    doDblClickWithAnnotation ;
  if assigned(selector.series) then
    doDblClickWithSeries ;
end ;
But there is nothing for the axis, like :
if assigned(selector.axis)...
Is it clearer ?

Pep
Site Admin
Site Admin
Posts: 3299
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Sun Feb 12, 2006 2:04 pm

Hi,

yes, you can do this as in the TeeChartOffice Demo (you can also look at the sources of this Demo which are included into the TeeChart Pro installation) :

Code: Select all

  if Selector.Part.Part<>cpNone then
  begin
    { show chart editor for the current selected part }
    EditChartPart(nil,DBChart1,Selector.Part);
    { just in case the Selector tool is removed when editing }
    if FindSelector=nil then CreateSelector;
    { stop mouse }
    DBChart1.CancelMouse:=True;
    Selector.StopDragging;
    { mark chart as modified }
    TeeModified;
  end;

bertrod
Advanced
Posts: 151
Joined: Wed Sep 07, 2005 4:00 am

Post by bertrod » Mon Feb 13, 2006 4:34 pm

Thank you :wink:

Post Reply