TCustomIvorySurface::OnChange

Occurs when the surface changes; in other words, when you paint the surface.

__property TNotifyEvent OnPaint;

Note

In Ivory Draw, you can lock a surface and access its pixels directly. Unfortunately, in this case the OnChange event won't occur. That's because it's impossible in C++Builder to set up a trigger on the change of a memory block. It's not a big problem, but you must know about it. Do not expect an OnChange event when you're writing pixels on a locked surface.

Back to TCustomIvorySurface