[TCursorTool] Invisible when superimposed

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
bertrod
Advanced
Posts: 151
Joined: Wed Sep 07, 2005 4:00 am

[TCursorTool] Invisible when superimposed

Post by bertrod » Fri Nov 24, 2006 10:54 am

Hello,

I'm using 2 CursorTool on my chart. My problem is that sometimes the 2 cursors must be at the same position. But if the 2 cursors are superimposed, they are not visible anymore. Is there a way to avoid this problem ?

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Fri Nov 24, 2006 11:05 am

Hi bertrod,

I'm afraid this is a bug, I've added it (TV52011928) to our defect list to be fixed for future releases.

In the meantime, you can try changing tool's pen width when they overlap, for example:

Code: Select all

procedure TForm1.ChartTool1Change(Sender: TCursorTool; x, y: Integer;
  const XValue, YValue: Double; Series: TChartSeries; ValueIndex: Integer);
begin
  if ChartTool1.XValue=ChartTool2.XValue then
    ChartTool1.Pen.Width:=2
  else
    ChartTool1.Pen.Width:=1
end;

procedure TForm1.ChartTool2Change(Sender: TCursorTool; x, y: Integer;
  const XValue, YValue: Double; Series: TChartSeries; ValueIndex: Integer);
begin
  if ChartTool1.XValue=ChartTool2.XValue then
    ChartTool2.Pen.Width:=2
  else
    ChartTool2.Pen.Width:=1
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
Image Image Image Image Image Image
Instructions - How to post in this forum

bertrod
Advanced
Posts: 151
Joined: Wed Sep 07, 2005 4:00 am

Post by bertrod » Mon Nov 27, 2006 3:44 pm

Ok thanks, I could deal with my problem with your suggestion.

Post Reply