mirror of
https://github.com/salvadordf/CEF4Delphi.git
synced 2024-12-04 09:26:52 +02:00
Fix FMX demos compilation failures with Delphi 10 Seattle and XE7
This commit is contained in:
parent
376606779a
commit
0172c6e1e3
@ -106,7 +106,11 @@ end;
|
||||
|
||||
function TFMXApplicationService.GetVersionString: string;
|
||||
begin
|
||||
{$IFDEF DELPHI22_UP}
|
||||
Result := OldFMXApplicationService.GetVersionString;
|
||||
{$ELSE DELPHI22_UP}
|
||||
Result := 'unsupported yet';
|
||||
{$ENDIF DELPHI22_UP}
|
||||
end;
|
||||
|
||||
procedure TFMXApplicationService.Run;
|
||||
|
@ -136,18 +136,9 @@ begin
|
||||
end;
|
||||
|
||||
procedure TChildForm.ResizeChild;
|
||||
var
|
||||
TempRect : System.Types.TRect;
|
||||
begin
|
||||
if (FMXWindowParent <> nil) then
|
||||
begin
|
||||
TempRect.Top := 0;
|
||||
TempRect.Left := 0;
|
||||
TempRect.Right := ClientWidth - 1;
|
||||
TempRect.Bottom := ClientHeight - 1;
|
||||
|
||||
FMXWindowParent.SetBounds(TempRect);
|
||||
end;
|
||||
FMXWindowParent.SetBounds(0, 0, ClientWidth - 1, ClientHeight - 1);
|
||||
end;
|
||||
|
||||
procedure TChildForm.FMXChromium1AfterCreated(Sender: TObject; const browser: ICefBrowser);
|
||||
|
@ -107,7 +107,11 @@ end;
|
||||
|
||||
function TFMXApplicationService.GetVersionString: string;
|
||||
begin
|
||||
{$IFDEF DELPHI22_UP}
|
||||
Result := OldFMXApplicationService.GetVersionString;
|
||||
{$ELSE DELPHI22_UP}
|
||||
Result := 'unsupported yet';
|
||||
{$ENDIF DELPHI22_UP}
|
||||
end;
|
||||
|
||||
procedure TFMXApplicationService.Run;
|
||||
|
Loading…
Reference in New Issue
Block a user