TextBox Tool?
TextBox Tool?
Any chance for the availability of a TextBox tool, "similar" to the DrawLine tool?
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Wiebe,
I don't understand what exactly do you mean. Could you please be more specific?
Thanks in advance.
I don't understand what exactly do you mean. Could you please be more specific?
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 |
TextBox tool
A tool that enables you, after a click somewhere in a chart, to draw some text in a box. Text and box to be definable "on the fly".
We are aware, and we tried ourselves in the past but ran into problems while zooming, that such a thing could be developed on the basis of an Annotation. But your guys are much smarter on that anyhow.
Wiebe
We are aware, and we tried ourselves in the past but ran into problems while zooming, that such a thing could be developed on the basis of an Annotation. But your guys are much smarter on that anyhow.
Wiebe
TextBox
Narcis,
Could you comment?
Thanks in advance
Wiebe
Could you comment?
Thanks in advance
Wiebe
Hi.
I guess this can already be done (quite easily) with the annotation tool. But as you noticed, if you zoom in/out or stretch chart image, annotation position will not change. This is "normal" as all custom positioned chart objects are defined in screen pixel coordinates.
In your case the best solution is to derive new TAnnotationToolEnh from existing annotation tool and add couple of properties defining tool left-top position, but expressed in axis (real) values. These properties will be set when tool is created and will store (real) axis coordinates. Then you can use these coordinates to actually paint annotation tool at specific x-y coordinate. The big advantage of this approach is if you zoom or scroll, tool screen position will be recalculated from stored (real) axis values and tool screen position will also change if needed.
I guess this can already be done (quite easily) with the annotation tool. But as you noticed, if you zoom in/out or stretch chart image, annotation position will not change. This is "normal" as all custom positioned chart objects are defined in screen pixel coordinates.
In your case the best solution is to derive new TAnnotationToolEnh from existing annotation tool and add couple of properties defining tool left-top position, but expressed in axis (real) values. These properties will be set when tool is created and will store (real) axis coordinates. Then you can use these coordinates to actually paint annotation tool at specific x-y coordinate. The big advantage of this approach is if you zoom or scroll, tool screen position will be recalculated from stored (real) axis values and tool screen position will also change if needed.
Marjan Slatinek,
http://www.steema.com
http://www.steema.com
TextBox
Thanks Marjan,
We'll have a look into it via that way.
OTOH consider to add a Textbox to your tools pallete in TChart V8.
Wiebe
We'll have a look into it via that way.
OTOH consider to add a Textbox to your tools pallete in TChart V8.
Wiebe
Hi Wiebe,
could you please send me some information how you did this? I need something similar in our project.
Thx !!
could you please send me some information how you did this? I need something similar in our project.
Thx !!
Greetz Dominik
http://www.logview.info
http://www.logview.info