OnPaintNotify event (Main Control)
Builder Syntax |
TPaintNotificationEvent OnPaintNotify(Cardinal uPass, Cardinal uType); |
Delphi Syntax |
OnPaintNotify(Cardinal uPass, Cardinal uType): TPaintNotificationEvent; |
Overview |
Refer to Using Special Effects When Painting. |
Remarks
Occurs before painting and after each pass when implementing a paint effect or transition effect.
This event lets you change the behavior of the effect before it finishes. The uType parameter lets you know whether a transition or an image is being painted. The uPass parameter works as follows:
Value |
Meaning |
0 |
No passes have painted. The first pass is next. |
1 |
One pass has painted. The second pass is next. |
2 |
The second pass has painted. The third pass is next. |
And so forth....
The PaintMaxPasses property specifies the number of passes to complete the image or transition. You can set the PaintPass property in this event if you want to skip or repeat a pass (for example, if you want to end with a blend of old and new images).
See Also
Elements: |
PaintEffect property, TransitionEffect property, PaintPass property, PaintMaxPasses property, PaintNotificationDelay property |
Topics: |