Download Now
Forums

    Reference TPaintEvent

    Declared in Codebot.Render.Widgets.pas on line 1313

    TPaintBox is a widget of a size you choose which draws nothing itself and is not drawn by the theme. OnPaint is called each frame with the canvas of the scene host and the rectangle of the paint box on the canvas, and drawing is clipped to the rectangle. Set its Width and Height, which are 100 by 100 by default.
    TPaintEvent = procedure(Sender: TObject; Surface: ICanvas; const Rect: TRectF) of object;

    See also

    ICanvas in Codebot.Render.Graphics.pas
    TRectF in Codebot.Graphics.Types.pas