Function TWPCustomRtfEdit.GetHistoryChars(Count:Integer) : string

Unit: WPCTRMemo
Class: WPCTRMemo.TWPCustomRtfEdit

Parameters

  • Count:Integer

Returns

The type of the result value is string.

Description

This functions retrieves the last characters which were typed since the last movement of the cursor. The maximum length of the string which can be retrieved is count with an upper limit of WPHistoryMaxCount (=40).
This function is used by the auto-detect-hyperlinks feature () and can also be very useful to display hints when certain character combinations are pressed. The history is implemented using an efficient circular buffer. Backspace will delete the last typed character.