RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Controls.CursorToIdent Function

Returns the name of the predefined constant that corresponds to a cursor.

Pascal
function CursorToIdent(Cursor: Longint; var Ident: string): Boolean;
C++
Boolean CursorToIdent(Longint Cursor, AnsiString Ident);

Controls

Use CursorToIdent to convert the cursor used by a control or one of the cursors made available by the global screen variable into the name of the corresponding constant. Pass the cursor value as the Cursor parameter. CursorToIdent returns the constant name as the Ident parameter. If the cursor does not have an associated constant (for example, a custom cursor), CursorToIdent returns false. 

To obtain a string representation of the cursor, even if there is no built-in cursor constant for it, use the CursorToString function. 

CursorToIdent can be used to identify the current cursor in a list of possible cursor constants that is built using GetCursorValues

 

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