|
OnPaintWatermark Event |
[Top] [Chapter] [Previous] [Next] |
|
Declaration C# OnPaintWatermark(Object Sender, int Editor, int Mode, Graphics Canvas, float X, float Y, float X1, float Y1, float Xres, float Yres); The .NET assembly uses different parameters than the OCX for this event type. It passes the coordinates and the resolution as floating point variables and instead of a device handle (HDC) it passes a reference to a .NET Graphics object as drawing surface "Canvas".
Declaration OCX OnPaintWatermark(ByVal Editor As Long, ByVal Mode As Long, ByVal DC As Long, ByVal X As Long, ByVal Y As Long, ByVal X1 As Long, ByVal Y1 As Long, ByVal Xres As Long, ByVal Yres As Long)
This event can be used to paint into the background of any page. |