[Overview][Constants][Types][Procedures and functions][Variables][Index] |
Get screen cursor type
Source position: videoh.inc line 139
function GetCursorType: Word; |
GetCursorType returns the current cursor type. It is one of the following values:
Note that not all drivers support all types of cursors.
None.
|
Set cursor type |
|
|
Get current driver capabilities. |
Program Example5; { Program to demonstrate the GetCursorType function. } Uses video,keyboard,vidutil; Const Cursortypes : Array[crHidden..crHalfBlock] of string = ('Hidden','UnderLine','Block','HalfBlock'); begin InitVideo; InitKeyboard; TextOut(1,1,'Cursor type: '+CursorTypes[GetCursorType]); TextOut(1,2,'Press any key to exit.'); UpdateScreen(False); GetKeyEvent; DoneKeyboard; DoneVideo; end.