RichViewEditCaretWidth, RichViewEditCaretWidthMode, RichViewEditCaretHeightExtra, RichViewEditMaxCaretHeight, RichViewEditMinCaretHeight, RichViewEditCaretPosition, RichViewEditCustomCaretSize
|Top Previous Next|
These typed constants allow to control the caret appearance in RichViewEdit.
RichViewEditCaretWidthMode defines how the caret width (thickness) is calculated. The meaning of possible values are explained in the table below.
RichViewEditCaretWidth defines the width of the caret. The value 0 (default) is special, it means using the system caret thickness (defined in the "Ease of Access" of the Settings app (or the Control Panel, depending in the Windows version)).
ScaleRichView note: TSRichViewEdit uses PageProperty.CaretPen.Width like RichViewEditCaretWidth.
Value of RichViewEditCaretHeightExtra is added to the top and the bottom of the caret (negative values make the caret shorter, positive values make it longer).
RichViewEditMaxCaretHeight – maximum possible caret height.
RichViewEditMinCaretHeight – minimum possible caret height.
Custom caret size
If RichViewEditCustomCaretSize = True, OnMeasureCustomCaret event is called not only for a custom caret, but for the standard caret as well.
The event is called after the standard caret size is calculated, but before the caret is repositioned (initially, it is positioned to the right side of the insertion position.
RichViewEditCaretPosition specifies how a wide caret is positioned relative to the insertion position.
ScaleRichView note: RichViewEditCaretPosition affects ScaleRichView as well.
TRichView © trichview.com