User Tools

Site Tools


Table of Contents

ITGIS_ViewerWndEvents.BeforePaintEvent method

DK11 for ActiveX | TatukGIS_XDK11.ITGIS_ViewerWndEvents.BeforePaintEvent | Methods

BeforePaint event. Will be fired before any Paint operation. Uses painting context object.

Available also on: Delphi FMX | .NET WinForms.


// C#
public void BeforePaintEvent(
  ref WordBool Translated,
  ITBaseObject Canvas
' VisualBasic
Public Sub BeforePaintEvent(
  ByRef Translated As WordBool,
  ByVal Canvas As ITBaseObject
// Oxygene
  procedure BeforePaintEvent(
    var Translated : WordBool;
    Canvas : ITBaseObject


Name Type Description
Translated WordBool
Canvas ITBaseObject


This even can be quite costly. To maintain compatibility with the old code we guarantee proper Canvas context even on Direct2D renderer. Try to replace this event with BeforePaintRendererEvent, which is always fast.

2020/05/22 01:05

Page Tools