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

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
moelski
Advanced
Posts: 212
Joined: Mon Apr 23, 2007 12:00 am
Location: Germany
Contact:

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

Post by moelski » Fri Jun 22, 2007 10:58 pm

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?

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

Post by Pep » Mon Jul 02, 2007 10:16 am

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.

moelski
Advanced
Posts: 212
Joined: Mon Apr 23, 2007 12:00 am
Location: Germany
Contact:

Post by moelski » Mon Jul 02, 2007 10:17 am

Hi Pep,

sounds good.

Thx for the info

Post Reply