Two annotations for cursor tool

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
anauta2014
Newbie
Newbie
Posts: 14
Joined: Tue Apr 08, 2014 12:00 am

Two annotations for cursor tool

Post by anauta2014 » Thu Nov 20, 2014 9:07 am

Currently cursor tool has only one annotation on the bottom axis. Is it possible to have two annotations one on the bottom axis and the second on the left axis?
With bets regards
Vladimir

Yeray
Site Admin
Site Admin
Posts: 9514
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Two annotations for cursor tool

Post by Yeray » Thu Nov 20, 2014 10:55 am

Hi Vladimir,

You can add as many TAnnotationTools as you want and calculate their position at the TColorLineTool OnDragLine event.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

anauta2014
Newbie
Newbie
Posts: 14
Joined: Tue Apr 08, 2014 12:00 am

Re: Two annotations for cursor tool

Post by anauta2014 » Thu Nov 20, 2014 12:46 pm

Hi Yeray
I know, I can add, but as cursor tool has one X-annotation tool, for symmetry can be the second Y-annotation.
With bets regards
Vladimir

Yeray
Site Admin
Site Admin
Posts: 9514
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Two annotations for cursor tool

Post by Yeray » Thu Nov 20, 2014 2:16 pm

Hi Vladimir,

Sorry, I misread it and understood you were talking about the TAnnotationTool in the TColorLineTool, while you clearly mentioned it's about the TAnnotationTool on the TCursorTool.
I've added it to the public tracker:
http://bugs.teechart.net/show_bug.cgi?id=1019
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

anauta2014
Newbie
Newbie
Posts: 14
Joined: Tue Apr 08, 2014 12:00 am

Re: Two annotations for cursor tool

Post by anauta2014 » Fri Feb 13, 2015 3:03 pm

Hi Yeray
As I can this issue is not fixed yet.
Would you like to tell, how this can be fixed?
With bets regards
Vladimir

Yeray
Site Admin
Site Admin
Posts: 9514
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Two annotations for cursor tool

Post by Yeray » Fri Feb 13, 2015 3:57 pm

Hi Vladimir,

Note this is a feature request to be implemented, more than a bug to be fixed.
I'm afraid you are right, this hasn't been implemented yet, but since the same result can already be done without much effort with the current set of tools, I wouldn't give this a much elevated priority.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

jens.mertelmeyer
Newbie
Newbie
Posts: 31
Joined: Fri Nov 21, 2014 12:00 am

Re: Two annotations for cursor tool

Post by jens.mertelmeyer » Mon Feb 16, 2015 8:38 am

Yeray wrote:since the same result can already be done without much effort
Exactly. I did it like this:

Code: Select all

procedure TForm8.cursorToolChange(
	Sender: TCursorTool;
	x, y: Integer;
	const XValue, YValue: Double;
	Series: TChartSeries;
	ValueIndex: Integer);
begin
	annotationTool.Top := Y - (annotationTool.Height div 2);
	annotationTool.Text := YValue.ToString();
end;
Attachments
cursorTool and annotationTool.png
cursorTool and annotationTool.png (13.24 KiB) Viewed 11987 times

Post Reply