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
OnRemoveSeries Events
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Jennifer,
I've added your request to our wish-list to be considered for inclusion for future releases.
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 |
Instructions - How to post in this forum |
-
- Site Admin
- Posts: 83
- Joined: Wed Nov 12, 2003 5:00 am
- Location: Girona, Catalonia
- Contact:
These new events have been added in v8 beta.
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.
When a Series is destroyed (ie: by calling Series1.Free), it is previously removed from a chart by setting its ParentChart property to nil.
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;