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;
|
function TFMXApplicationService.GetVersionString: string;
|
||||||
begin
|
begin
|
||||||
|
{$IFDEF DELPHI22_UP}
|
||||||
Result := OldFMXApplicationService.GetVersionString;
|
Result := OldFMXApplicationService.GetVersionString;
|
||||||
|
{$ELSE DELPHI22_UP}
|
||||||
|
Result := 'unsupported yet';
|
||||||
|
{$ENDIF DELPHI22_UP}
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TFMXApplicationService.Run;
|
procedure TFMXApplicationService.Run;
|
||||||
|
@ -136,18 +136,9 @@ begin
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TChildForm.ResizeChild;
|
procedure TChildForm.ResizeChild;
|
||||||
var
|
|
||||||
TempRect : System.Types.TRect;
|
|
||||||
begin
|
begin
|
||||||
if (FMXWindowParent <> nil) then
|
if (FMXWindowParent <> nil) then
|
||||||
begin
|
FMXWindowParent.SetBounds(0, 0, ClientWidth - 1, ClientHeight - 1);
|
||||||
TempRect.Top := 0;
|
|
||||||
TempRect.Left := 0;
|
|
||||||
TempRect.Right := ClientWidth - 1;
|
|
||||||
TempRect.Bottom := ClientHeight - 1;
|
|
||||||
|
|
||||||
FMXWindowParent.SetBounds(TempRect);
|
|
||||||
end;
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TChildForm.FMXChromium1AfterCreated(Sender: TObject; const browser: ICefBrowser);
|
procedure TChildForm.FMXChromium1AfterCreated(Sender: TObject; const browser: ICefBrowser);
|
||||||
|
@ -107,7 +107,11 @@ end;
|
|||||||
|
|
||||||
function TFMXApplicationService.GetVersionString: string;
|
function TFMXApplicationService.GetVersionString: string;
|
||||||
begin
|
begin
|
||||||
|
{$IFDEF DELPHI22_UP}
|
||||||
Result := OldFMXApplicationService.GetVersionString;
|
Result := OldFMXApplicationService.GetVersionString;
|
||||||
|
{$ELSE DELPHI22_UP}
|
||||||
|
Result := 'unsupported yet';
|
||||||
|
{$ENDIF DELPHI22_UP}
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TFMXApplicationService.Run;
|
procedure TFMXApplicationService.Run;
|
||||||
|
Loading…
Reference in New Issue
Block a user