OnRemoveSeries Events

Ideas and wishes for TeeChart
Post Reply
Jenn
Newbie
Newbie
Posts: 19
Joined: Fri Jul 08, 2005 4:00 am
Location: Logan, Utah United States

OnRemoveSeries Events

Post by Jenn » Thu Nov 02, 2006 11:07 pm

Hello,

There are events for OnSeriesBeforeAdd and OnSeriesAfterAdd. Could we do the same for when the user removes a series. :)

For example, if the user deletes a series via the TeeListBox, there's more cleanup that needs to be done in my code. It would be nice if we received an event for when this happens, either in the TeeListBox or in the TChart.

Thanks a lot!

Jennifer Britt

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 03, 2006 8:47 am

Hi Jennifer,

I've added your request to our wish-list to be considered for inclusion for future releases.
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

Jenn
Newbie
Newbie
Posts: 19
Joined: Fri Jul 08, 2005 4:00 am
Location: Logan, Utah United States

Post by Jenn » Tue Nov 07, 2006 6:31 pm

Thank you!

David Berneda
Site Admin
Site Admin
Posts: 83
Joined: Wed Nov 12, 2003 5:00 am
Location: Girona, Catalonia
Contact:

Post by David Berneda » Tue Nov 14, 2006 4:32 pm

These new events have been added in v8 beta.

Code: Select all

Chart1.OnAddSeries(Sender:TCustomChartSeries);

Chart1.OnRemoveSeries(Sender:TCustomChartSeries);

They are called just after a series has been added to a Chart, and just after it has been removed.

Note: Adding or removing a series to a chart happens when the series ParentChart property is set.

Code: Select all

Series1.ParentChart := Chart123;
When a Series is destroyed (ie: by calling Series1.Free), it is previously removed from a chart by setting its ParentChart property to nil.

Post Reply