2.101 .endsel

The attribute .endsel defines the end of the selection in the input field.

Definition

  • Data type

    integer

  • Access

    get, set

  • changed event

    yes

When modifying .endsel or .startsel, .focus must be true, so that the new selection can be displayed. .endsel may be smaller than .startsel there.

Special Values

The following values, which are particularly useful when formats are set, have a special meaning:

-1
Selects all decimal places after the decimal point, including zeros inserted by a format that are not contained in the content string
-2
Selects all decimal places of the integer part up to the right end (decimal point)
-3
Selects all decimal places of the integer part, inclusive of leading zeros inserted by a format

Selection of the leading sign is possible in no case.

Remark on the IDM for Windows

When querying .startsel and .endsel of an edittext, since IDM version A.05.02.l .endsel may be smaller than .startsel. In this case the cursor is positioned left of the selection. However, if the user selects text with the mouse, .startsel is always smaller than .endsel and it cannot be recognized where the cursor is. In previous IDM versions .startsel was always less than or equal to .endsel, except it was set differently from the Rule Language.

See also

Attribute .startsel