Sign in Join
FPDoc Onlineexperiment

TCustomComboBox.SelStart property

Member of TCustomComboBoxpublicIn unit StdCtrls

zero-based index to the UTF-8 character at the beginning of the selected text in the edit box.

Declaration

pascal
property SelStart: Integer read GetSelStart write SetSelStart;

Description

If text is selected in the edit box for the control, this is the starting position. When no text is selected, SelStart is the cursor position and SelLength is 0 (zero).

Writing a new value to the property moves the cursor, and removes the current text selection. Set SelLength after changing SelStart, to establish a new text selection.

SelStart is a zero-based index to UTF-8 character in the Text, in contrast to the usual 1-based string indices. The value 0 means the first UTF-8 character, the value 1 means the second UTF-8 character, etc.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.