mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-06 09:00:33 +02:00
Cocoa/Cursor: TCursorHelper.ForceSetDefaultCursor() added
This commit is contained in:
parent
b6739bcc36
commit
ec8affdaa1
@ -24,6 +24,7 @@ type
|
||||
_lastCursor: NSCursor;
|
||||
public
|
||||
procedure SetNewCursor( newCursor:TCocoaCursor );
|
||||
procedure ForceSetDefaultCursor;
|
||||
public
|
||||
class procedure SetCursorOnActive;
|
||||
class procedure SetCursorAtMousePos;
|
||||
@ -380,6 +381,15 @@ begin
|
||||
end;
|
||||
end;
|
||||
|
||||
procedure TCursorHelper.ForceSetDefaultCursor;
|
||||
var
|
||||
newCursor: TCocoaCursor;
|
||||
begin
|
||||
newCursor:= TCocoaCursor(Screen.Cursors[crDefault]);
|
||||
newCursor.SetCursor;
|
||||
_lastCursor:= newCursor.Cursor;
|
||||
end;
|
||||
|
||||
class procedure TCursorHelper.SetCursorOnActive;
|
||||
begin
|
||||
CursorHelper._lastCursor:= nil;
|
||||
|
Loading…
Reference in New Issue
Block a user