Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Spin Edit Box - SelectText Method

Panel
bgColor#2c3c4c

Set selection within the value

Member of Spin Edit Box (PRIM_SPDT)

Parameters

Name

Type

Data Type

Description

StartPosition

*Input

Integer

Position in the value that selection starts

Length

*Input(Optional)

Integer

Number of characters to select

Details

The SelectText method sets selection within an edit.

If the cursor is to the left of the first character, the value will be 0.

To manually overide override selection, you must set the AutoSelect property to False.

The most common requirement for Selection handling is completing a value during input. This is managed automatically by the AutoCompleting event.

SelectText is provided for completeness and is unlikely to be required for most development purposes.


See also

All Component Classes

Technical Reference