Series mark 'Clicked' does not test the angle of the mark.

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Gerard
Newbie
Newbie
Posts: 26
Joined: Fri Nov 15, 2002 12:00 am
Location: Australia
Contact:

Series mark 'Clicked' does not test the angle of the mark.

Post by Gerard » Tue Jul 13, 2004 2:38 am

I have the following setup...

series->Marks->Visible = true;
series->Marks->Style = smsLegend;
series->Marks->ArrowLength = 15;
series->Marks->Angle = 90;

However, when testing the mouse pointer over the mark by calling...
series->Marks->Clicked(X, Y)
...I find that the function returns a valid index as though the angle was 0.

Is this a bug ?

Regards, David Peacock.

Marjan
Site Admin
Site Admin
Posts: 745
Joined: Fri Nov 07, 2003 5:00 am
Location: Slovenia
Contact:

Post by Marjan » Tue Jul 13, 2004 6:17 am

Hi, David.

It's more a missing feature than a bug :wink: The angle is not taken into the account when Clicked determines current mark index.
Marjan Slatinek,
http://www.steema.com

Gerard
Newbie
Newbie
Posts: 26
Joined: Fri Nov 15, 2002 12:00 am
Location: Australia
Contact:

RE: Series mark 'Clicked' does not test the angle

Post by Gerard » Wed Jul 14, 2004 1:28 am

You have an interesting perspective of what constitutes bug vs. missing feature.

The way I see it, if your tool can draw marks at any angle AND your tool can generate events when the mark is clicked THEN both of these functions should work correctly in all cases. Otherwise, to me, it is a bug.

Would be nice to see it corrected.

Pep
Site Admin
Site Admin
Posts: 3303
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Wed Jul 14, 2004 8:49 am

Hi David,

ok, it has been added on our defect list and a fix for it will be considered to inclusion for the next maintenance releases.

Gerard
Newbie
Newbie
Posts: 26
Joined: Fri Nov 15, 2002 12:00 am
Location: Australia
Contact:

Post by Gerard » Thu Jul 15, 2004 1:56 am

Brilliant!

David.

Post Reply