Page 1 of 1

How to find the axis on which the selector is ?

Posted: Fri Feb 10, 2006 11:06 am
by 9343260
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).

Posted: Fri Feb 10, 2006 12:17 pm
by narcis
Hi bertrod,

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

Thanks in advance.

Posted: Fri Feb 10, 2006 12:28 pm
by 9343260
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 ?

Posted: Sun Feb 12, 2006 2:04 pm
by Pep
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;

Posted: Mon Feb 13, 2006 4:34 pm
by 9343260
Thank you :wink: