|
TRVStyle.OnApplyStyleColor |
Top Previous Next |
|
Occurs when RichView applies the color of the StyleNo-th style to Canvas. property OnApplyStyleColor: TRVApplyStyleColorEvent;
type TRVApplyStyleColorEvent = procedure (Sender: TRVStyle; Canvas: TCanvas; StyleNo: Integer; DrawState: TRVTextDrawStates; var DoDefault: Boolean) of object; (introduced in version 1.3) In this event you can apply font color for the StyleNo-th text style to Canvas. Nothing should be drawn inside this event. Input parameters: Sender – TRVStyle generating this event. Canvas – canvas for applying background and text colors to. DrawState – states of this text item, see TRVTextDrawStates. DoDefault is equal to True. Output parameters: DoDefault – set to False to prevent the default colors applying procedure.
See also: See also properties: |