mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-12 13:50:06 +02:00
cocoa: fix isEnabled, setEnabled for NSWindow
git-svn-id: trunk@34459 -
This commit is contained in:
parent
e4a811c552
commit
d2f6f1cb1b
@ -119,6 +119,9 @@ type
|
||||
|
||||
LCLWindowExtension = objccategory(NSWindow)
|
||||
function lclIsVisible: Boolean; message 'lclIsVisible'; reintroduce;
|
||||
function lclIsEnabled: Boolean; message 'lclIsEnabled'; reintroduce;
|
||||
procedure lclSetEnabled(AEnabled: Boolean); message 'lclSetEnabled:'; reintroduce;
|
||||
|
||||
function lclWindowState: Integer; message 'lclWindowState'; reintroduce;
|
||||
procedure lclInvalidateRect(const r: TRect); message 'lclInvalidateRect:'; reintroduce;
|
||||
procedure lclInvalidate; message 'lclInvalidate'; reintroduce;
|
||||
@ -1095,6 +1098,16 @@ begin
|
||||
Result := isVisible;
|
||||
end;
|
||||
|
||||
function LCLWindowExtension.lclIsEnabled: Boolean;
|
||||
begin
|
||||
Result := contentView.lclIsEnabled;
|
||||
end;
|
||||
|
||||
procedure LCLWindowExtension.lclSetEnabled(AEnabled: Boolean);
|
||||
begin
|
||||
contentView.lclSetEnabled(AEnabled);
|
||||
end;
|
||||
|
||||
function LCLWindowExtension.lclWindowState: Integer;
|
||||
begin
|
||||
if isMiniaturized then
|
||||
|
@ -7,7 +7,7 @@ interface
|
||||
|
||||
uses
|
||||
Types,
|
||||
MacOSAll, CocoaAll,
|
||||
CocoaAll,
|
||||
Classes, Controls, SysUtils,
|
||||
//
|
||||
WSControls, LCLType, LMessages, LCLProc, Forms,
|
||||
|
Loading…
Reference in New Issue
Block a user