mirror of
https://github.com/salvadordf/CEF4Delphi.git
synced 2025-04-07 06:50:04 +02:00
Fixed backwards compatibility issues with XE2
This commit is contained in:
parent
c17402e765
commit
a0b2a1a911
@ -68,13 +68,18 @@ type
|
||||
procedure Reparent(const aNewParentHandle : {$IFDEF DELPHI18_UP}TWindowHandle{$ELSE}TFmxHandle{$ENDIF});
|
||||
property ChildWindowHandle : HWND read GetChildWindowHandle;
|
||||
{$ENDIF}
|
||||
{$IFNDEF DELPHI17_UP}
|
||||
procedure SetBounds(ALeft, ATop, AWidth, AHeight: Integer); override;
|
||||
{$ENDIF}
|
||||
|
||||
published
|
||||
property Visible;
|
||||
property Height;
|
||||
property Width;
|
||||
{$IFDEF DELPHI17_UP}
|
||||
property Touch;
|
||||
property OnGesture;
|
||||
{$ENDIF}
|
||||
end;
|
||||
|
||||
implementation
|
||||
@ -97,6 +102,15 @@ begin
|
||||
UpdateSize;
|
||||
{$ENDIF}
|
||||
end;
|
||||
{$ELSE}
|
||||
procedure TFMXWindowParent.SetBounds(ALeft, ATop, AWidth, AHeight: Integer);
|
||||
begin
|
||||
inherited SetBounds(ALeft, ATop, AWidth, AHeight);
|
||||
|
||||
{$IFDEF MSWINDOWS}
|
||||
UpdateSize;
|
||||
{$ENDIF}
|
||||
end;
|
||||
{$ENDIF}
|
||||
|
||||
{$IFDEF MSWINDOWS}
|
||||
|
@ -2,7 +2,7 @@
|
||||
"UpdateLazPackages" : [
|
||||
{
|
||||
"ForceNotify" : true,
|
||||
"InternalVersion" : 448,
|
||||
"InternalVersion" : 449,
|
||||
"Name" : "cef4delphi_lazarus.lpk",
|
||||
"Version" : "107.1.12"
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user