mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-30 15:10:16 +02:00
cocoa: remove wrong usage of interfaces
git-svn-id: trunk@38942 -
This commit is contained in:
parent
a8550d383a
commit
cc9082bfec
@ -1278,25 +1278,13 @@ begin
|
||||
end;
|
||||
|
||||
function LCLWindowExtension.lclIsEnabled: Boolean;
|
||||
var
|
||||
Callback: ICommonCallback;
|
||||
begin
|
||||
Callback := lclGetCallback;
|
||||
if Assigned(Callback) then
|
||||
Result := IWindowCallback(Callback).Enabled
|
||||
else
|
||||
Result := contentView.lclIsEnabled;
|
||||
Result := contentView.lclIsEnabled;
|
||||
end;
|
||||
|
||||
procedure LCLWindowExtension.lclSetEnabled(AEnabled: Boolean);
|
||||
var
|
||||
Callback: ICommonCallback;
|
||||
begin
|
||||
Callback := lclGetCallback;
|
||||
if Assigned(Callback) then
|
||||
IWindowCallback(Callback).Enabled := AEnabled
|
||||
else
|
||||
contentView.lclSetEnabled(AEnabled);
|
||||
contentView.lclSetEnabled(AEnabled);
|
||||
end;
|
||||
|
||||
function LCLWindowExtension.lclWindowState: Integer;
|
||||
|
Loading…
Reference in New Issue
Block a user