RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomMaskEdit.SetCursor Method

Moves the cursor to the first editable character at or before Pos, and selects that character.

Pascal
procedure SetCursor(Pos: Integer);
C++
__fastcall SetCursor(int Pos);

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. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!