Hello,
I use the "Drag Marks - Tool" in my TChart - Application. How can I change the color of the Lines from the Series to the Dragged Marks? white.
Thanks.
Change Color of the Lines for "Drag Marks - Tool"
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Woehr.Mi,
You can use tool's OnDraggedMark event like this:
However, this will change all marks arrows, not only those that have been dragged.
You can use tool's OnDraggedMark event like this:
Code: Select all
procedure TForm1.ChartTool1DraggedMark(Sender: TDragMarksTool;
Index: Integer; Button: TMouseButton; Shift: TShiftState; X, Y: Integer);
begin
Sender.Series.Marks.Arrow.Color:=clRed;
end;
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 |
Hello Narcís,
Thanks for the quick response! That's exactly what I need. But when I run this code I get a a access violation.
Another Problem that I have is:
When I drag some marks to another position and after that I start zooming or scrolling the marks stay at their absolute position (also the arrows from the Series to the Marks).
Thanks for the quick response! That's exactly what I need. But when I run this code I get a a access violation.
Another Problem that I have is:
When I drag some marks to another position and after that I start zooming or scrolling the marks stay at their absolute position (also the arrows from the Series to the Marks).
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Woehr.Mi,
http://www.teechart.net/support/viewtopic.php?t=4919
http://www.teechart.net/support/viewtopic.php?t=2230
Hope this helps!
This code worked fine for me here. Which TeeChart version are you using?Thanks for the quick response! That's exactly what I need. But when I run this code I get a a access violation.
For this to work you should set marks position to be relative to some chart object: series points, axes, legend, title, etc. So you can use custom marks position as shown in the forums threads below. You could calculate their position relative to series points.Another Problem that I have is:
When I drag some marks to another position and after that I start zooming or scrolling the marks stay at their absolute position (also the arrows from the Series to the Marks).
http://www.teechart.net/support/viewtopic.php?t=4919
http://www.teechart.net/support/viewtopic.php?t=2230
Hope this helps!
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 |
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Woehr.Mi,
Thanks for the information. I'll send you v8.03 installer so that you can check if it solves the problem at your end. v8.03 is a test version and we will release v8.04 very soon.
Thanks for the information. I'll send you v8.03 installer so that you can check if it solves the problem at your end. v8.03 is a test version and we will release v8.04 very soon.
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 |
Hi Narcís,
Thanks for sending me the Version 8.03. I'll try if it works better with this Version.
But I couldn't find out how to calculate the relative positions between marks and the Series-Points.
Thanks for the information. I'll send you v8.03 installer so that you can check if it solves the problem at your end. v8.03 is a test version and we will release v8.04 very soon
Thanks for sending me the Version 8.03. I'll try if it works better with this Version.
Thanks for the links to these Forum-Threads.For this to work you should set marks position to be relative to some chart object: series points, axes, legend, title, etc. So you can use custom marks position as shown in the forums threads below. You could calculate their position relative to series points.
http://www.teechart.net/support/viewtopic.php?t=4919
http://www.teechart.net/support/viewtopic.php?t=2230
But I couldn't find out how to calculate the relative positions between marks and the Series-Points.
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Woehr.Mi,
Hope this helps!
If you look at the second page of the first thread, I posted a message doing exactly what you request.But I couldn't find out how to calculate the relative positions between marks and the Series-Points.
Hope this helps!
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 |