[Overview][Constants][Types][Classes][Procedures and functions][Index] Reference for unit 'StdCtrls' (#lcl)

TCustomComboBox.SelStart

The zero-based UTF-8 index of the begin of the selection in the edit box.

Declaration

Source position: stdctrls.pp line 403

public property TCustomComboBox.SelStart : Integer
  read GetSelStart
  write SetSelStart;

Description

If text is selected, this is the starting position, otherwise the cursor position.

When no text is selected, SelStart is the cursor position, and SelLength=0.

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

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

See also

TCustomComboBox.SelLength

  

The number of selected UTF-8 characters in the edit box.

TCustomComboBox.SelText

  

The selected text in the edit box.

The latest version of this document can be found at lazarus-ccr.sourceforge.net.