rvico TRichView Reference | TRVStyle

TRVStyle.OnAfterApplyStyle

Top  Previous  Next

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

property OnAfterApplyStyle: TRVAfterApplyStyleEvent;

 

type

  TRVApplyStyleEvent =

    procedure (Sender: TRVStyle; Canvas: TCanvas; 

      StyleNo: Integer) of object;

(introduced in version 12)

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.


TRichView © trichview.com