Page 1 of 1

How to get noticed if something has changed to the chart?

Posted: Fri Jun 22, 2007 10:58 pm
by 9349911
Hi !

I you have an easy component like a memo or a edit you always have an event for OnChange. This event is fired up if something has changed within the component (for example if you type in some text).

Is it possible to have such an event (or something similar) for TChart? We need to know if the user has changed something to the chart. And there are two points important for us:
1) has the user changed the data for the chart (editing the grid...)
2) has the user changed something to the layout of the chart (e.g. Line with, colors, etc.)

Could you give us a hint how to solve this problem?

Posted: Mon Jul 02, 2007 10:16 am
by Pep
Hi Dominik,

how about using the OnAfterDraw event ?
It's fired when the Chart must be repainted, including when the used do the changes through the Chart Editor.

Posted: Mon Jul 02, 2007 10:17 am
by 9349911
Hi Pep,

sounds good.

Thx for the info