Skip to content

OnSelectionChanged - DfBaseRichEdit

Fires when selection changes

Type: Event

Syntax

Procedure OnSelectionChanged

Description

Fires whenever the selected text changes, including when the cursor is moved. If no text is selected, the cursor position is considered the current selection.

Sample

This sample shows how to add Procedure OnSelectionChanged to a class or object in order to intercept this event in order to react to it.

Procedure OnSelectionChanged
    // do something
    :
End_Procedure  // OnSelectionChanged