TrvAction.Control

Top  Previous  Next

Defines the editor for this action.

property Control: TCustomRVControl;

If an editor is assigned to this property, the action works with this component.

Controls of the following types can be assigned to this property:

TRichViewEdit

TDBRichViewEdit

TSRichViewEdit (ScaleRichView)

TDBSRichViewEdit (ScaleRichView)

Otherwise, if GetControlPanel.DefaultControl is assigned, the action works with it.

Otherwise, if an editor component is focused, the action works with it.

Otherwise, it works with the first found editor component.

Special actions

The following actions automatically assign this property, if it was not assigned before the first execution:

TrvActionStyleInspector;

TrvActionEditNote.

They need this property assigned, because they display information for the current item in the target editor, even when the caret is moved after the execution of the action.

 


RichViewActions © trichview.com