2.340 .startsel

For edittext and poptext, the .startsel attribute defines the beginning of the selection in the input field.

For the file and directory dialogs (filereq), this attribute can be used to specify an initial value. If .startsel is true, the content of the .value attribute is used as default value.

Definition

  • Data type

    integer

    boolean (filereq)

  • Access

    get, set

  • changed event

    yes

    no (filereq)

2.340.1 edittext, poptext

When modifying .startsel or .endsel, .focus must be true, so that the new selection can be displayed. .startselmay be greater than .endsel 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 .endsel

2.340.2 filereq

Only one value can be specified, that is .value has to be scalar. The .value attribute must contain a full path where the directory matches the .directoy attribute.

The default value of .startsel is false.

Notes

  • The default value is displayed in the input field of the file and folder dialogs but not highlighted in the select lists. This is a property of the Windows and Motif system dialogs.
  • On Microsoft Windows, only defaults for loading and saving files are possible, but not for the choice of a directory.

See also

Attributes .directory, .value