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).
How to find the axis on which the selector is ?
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi bertrod,
Could you please be more specific on that? We don't understand what do you exactly mean.
Thanks in advance.
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 |
Instructions - How to post in this forum |
On my chart, I'm trying to manage the double-click on different things :
But there is nothing for the axis, like :
Code: Select all
procedure myChart.dblClick(Sender: TObject);
begin
if assigned(selector.annotation) then
doDblClickWithAnnotation ;
if assigned(selector.series) then
doDblClickWithSeries ;
end ;
Is it clearer ?if assigned(selector.axis)...
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) :
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;
Pep Jorge
http://support.steema.com
http://support.steema.com