Selecting a range of points with the mouse

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Richard Seaby
Newbie
Newbie
Posts: 58
Joined: Mon May 17, 2004 4:00 am
Contact:

Selecting a range of points with the mouse

Post by Richard Seaby » Thu Apr 05, 2007 11:09 am

I am using a chart with tpointseries - what I would like to do is be able to select a range of points by dragging and then move then into another series. {D2007, Chart pro}

I have several groups of data defined which are plotted as separate series. I need to be able to let the user change which groups the data belong to graphically.

I can do it point by point using a Chartlistbox

if series <> form2.ChartListBox1.SelectedSeries then
begin
TempX:= series.XValue[ValueIndex];
TempY:= Series.YValue[ValueIndex];
form2.ChartListBox1.SelectedSeries.AddXY(tempX, TempY);
Series.Delete(ValueIndex);
end;

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

Post by Narcís » Thu Apr 05, 2007 11:26 am

Hi Richard,

You could try doing something as the options discussed in this thread. It is a TeeChart for .NET topic but the same principles are applicable to TeeChart Pro VCL.
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

Richard Seaby
Newbie
Newbie
Posts: 58
Joined: Mon May 17, 2004 4:00 am
Contact:

Post by Richard Seaby » Thu Apr 05, 2007 3:02 pm

Thanks for that - I have got it working now - it took a while to realise that != is <> in delphi!

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

Post by Narcís » Thu Apr 05, 2007 3:05 pm

Hi Richard,

You're welcome. I'm glad to hear that helped.

In case you have problems translating C# code to Delphi you can try using Borland's Babel Client.
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

Post Reply