You've already forked CEF4Delphi
							
							
				mirror of
				https://github.com/salvadordf/CEF4Delphi.git
				synced 2025-10-30 23:07:52 +02:00 
			
		
		
		
	- New TCEFServerComponent. The new CEF3 includes a http and websockets server for communication between applications in localhost. - New JSDialogBrowser demo to showhow to use custom forms in javascript dialogs. - New SimpleServer demo which uses TCEFServerComponent. - Removed all the code that could be removed from the DPR files and moved to another units. - Now the GlogalCEFApp checks all the CEF3 binaries and stores the missing files in GlogalCEFApp.MissingLibFiles. The default error message gives a list of missing files. - New GlobalCEFApp.Status property. Use it with GlobalCEFApp.ShowMessageDlg set to False if you want to show customized error messages. - Now TCEFClient only creates the necessary handlers if you use any their events in TChromium. - Fixed a destruction bug in OSRExternalPumpBrowser - Added the procedures to handle WM_ENTERMENULOOP and WM_EXITMENULOOP to all the demos.
		
			
				
	
	
		
			36 lines
		
	
	
		
			797 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			36 lines
		
	
	
		
			797 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
| <!DOCTYPE html>
 | |
| <html>
 | |
| <body>
 | |
| 
 | |
| <p>The following button shows an alert box.</p>
 | |
| <button onclick="myAlertFunction()">Click me</button>
 | |
| <br>
 | |
| 
 | |
| <p>The following button shows an confirm box.</p>
 | |
| <button onclick="myConfirmFunction()">Click me</button>
 | |
| <br>
 | |
| 
 | |
| <p>The following button shows an Prompt box.</p>
 | |
| <button onclick="myPromptFunction()">Click me</button>
 | |
| <br>
 | |
| 
 | |
| <p id="demo"></p>
 | |
| 
 | |
| <script>
 | |
| function myAlertFunction() {
 | |
|     alert('Custom dialog for JS Alert functions');
 | |
| }
 | |
| function myConfirmFunction() {
 | |
|     confirm("Press a button!");
 | |
| }
 | |
| function myPromptFunction() {
 | |
|     var person = prompt("Please enter your name", "Harry Potter");
 | |
|     if (person != null) {
 | |
|         document.getElementById("demo").innerHTML =
 | |
|         "Hello " + person + "! How are you today?";
 | |
|     }
 | |
| }
 | |
| </script>
 | |
| 
 | |
| </body>
 | |
| </html> |