mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-05 09:00:25 +02:00
carbon: implement Application.SetIcon
git-svn-id: trunk@33606 -
This commit is contained in:
parent
da92ed2789
commit
a4beb21c5f
@ -85,6 +85,7 @@ type
|
||||
procedure AppMinimize; override;
|
||||
procedure AppRestore; override;
|
||||
procedure AppBringToFront; override;
|
||||
procedure AppSetIcon(const Small, Big: HICON); override;
|
||||
procedure AppSetTitle(const ATitle: string); override;
|
||||
|
||||
function CreateTimer(Interval: integer; TimerFunc: TWSTimerProc): THandle; override;
|
||||
|
@ -177,6 +177,14 @@ begin
|
||||
NSApp.activateIgnoringOtherApps(True);
|
||||
end;
|
||||
|
||||
procedure TCocoaWidgetSet.AppSetIcon(const Small, Big: HICON);
|
||||
begin
|
||||
if Big <> 0 then
|
||||
NSApp.setApplicationIconImage(TCocoaBitmap(Big).image)
|
||||
else
|
||||
NSApp.setApplicationIconImage(nil);
|
||||
end;
|
||||
|
||||
{------------------------------------------------------------------------------
|
||||
Method: TCocoaWidgetSet.AppSetTitle
|
||||
Params: ATitle - New application title
|
||||
|
Loading…
Reference in New Issue
Block a user