You've already forked CEF4Delphi
							
							
				mirror of
				https://github.com/salvadordf/CEF4Delphi.git
				synced 2025-10-30 23:07:52 +02:00 
			
		
		
		
	Fix FMX demos compilation failures with Delphi 10 Seattle and XE7
This commit is contained in:
		| @@ -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; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user