TRVStyle.OnAfterApplyStyle

<< Click to display table of contents >>

TRVStyle.OnAfterApplyStyle

Occurs after RichView applies attributes of the StyleNo-th style to Canvas.

property OnAfterApplyStyle: TRVAfterApplyStyleEvent;

VCL and LCL:

type

  TRVApplyStyleEvent =

    procedure (Sender: TRVStyle; Canvas: TCanvas; 

      StyleNo: Integer) of object;

(introduced in version 12)

FireMonkey:

type

  TRVApplyStyleEvent =

    procedure (Sender: TRVStyle; Canvas: TRVFMXCanvas

      StyleNo: Integer) of object;

In this event you can apply font (excluding colors) for the text style StyleNo to Canvas. Nothing should be drawn inside this event.

This event is similar to OnApplyStyle, but occurs after the default procedure. This event does not occur if OnApplyStyle returned False in DoDefault parameter.

Input parameters:

Sender – TRVStyle generating this event;

Canvas – canvas for applying font attributes to.

 

See also:

OnApplyStyleColor;

OnDrawStyleText.

See also properties:

TextStyles.