RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomMaskEdit.CheckCursor Method

Moves the cursor to the closest editable character and selects it if nothing is currently selected.

Pascal
procedure CheckCursor;
C++
__fastcall CheckCursor();

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. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!