EControl Syntax Editor SDK
TCustomSyntaxMemo.HaveSelection Method

Return True if there is any selection.

function HaveSelection: Boolean;

Use this method instead of checking if SelLength property is equal to zero. When columnar selection is made, SelLength is zero.

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