Vcl.Mask.TCustomMaskEdit.CheckCursor
Delphi
procedure CheckCursor;
C++
void __fastcall CheckCursor();
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
protected | Vcl.Mask.pas Vcl.Mask.hpp |
Vcl.Mask | TCustomMaskEdit |
Description
Moves the cursor to the closest editable character and selects it if nothing is currently selected.
CheckCursor is called whenever the position of the cursor may have changed. It 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.