RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Controls.CursorToString Function

Returns the AnsiString representation of a cursor.

Pascal
function CursorToString(Cursor: TCursor): string;
C++
AnsiString CursorToString(TCursor Cursor);

Controls

Use CursorToString to convert the cursor used by a control or one of the cursors made available by the global screen variable into a string that can be displayed to the user. Pass the cursor value as the Cursor parameter. If there is a predefined constant for the cursor, CursorToString returns the constant name. If the cursor does not have an associated constant (for example, a custom cursor), CursorToString returns a string representation of the cursor's numeric value. 

To obtain a string representation of the cursor only if there is a built-in cursor constant, use CursorToIdent

 

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