Vcl.Mask.TCustomMaskEdit.SetCursor
Delphi
procedure SetCursor(Pos: Integer);
C++
HIDESBASE void __fastcall SetCursor(int Pos);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
protected | Vcl.Mask.pas Vcl.Mask.hpp |
Vcl.Mask | TCustomMaskEdit |
Description
Moves the cursor to the first editable character at or before Pos, and selects that character.
SetCursor handles positioning of the cursor within the EditText so that it is always on an editable character. It also ensures that at least one character is always selected. Because editing a masked edit control consists of replacing the blank characters in the mask, there must always be a selection to replace. The selection corresponds to one or more nonliteral characters in the mask, which are either blank or contain characters for the user to reenter.