EControl Syntax Editor SDK
TecSyntMemoAction.MustBeSelected Property

Disables action if there is no selection in editor.

property MustBeSelected: Boolean;

Use this property is disable action when there is no selected text and when this action can be fired with empty selection. 

For example, set this property to True for "indent" action to disable indenting of text when no text is selected.

Copyright (c) 2004-2011. All rights reserved.
What do you think about this topic? Send feedback!