WebUI4Delphi is a WebUI wrapper, which allows you to use any web browser as a GUI, with Delphi in the backend and HTML5 in the frontend.
WebUI4Delphi can be used in 64 bit Delphi applications for Windows. Linux and MacOS support needs testing.
WebUI4Delphi was developed and tested on Delphi 12.0 but it also supports Delphi XE2.
WebUI4Delphi includes VCL, FireMonkey (FMX) and console examples.
If you need to embed a web browser instead of using the installed web browser then consider using CEF4Delphi or WebView4Delphi.
- Fully Independent (No need for any third-party runtimes)
- Lightweight & Small memory footprint
- Fast binary communication protocol between WebUI and the browser (Instead of JSON)
- Multi-platform & Multi-Browser
- Using private profile for safety
- Original library written in Pure C
- Help insight documentation.
- Help file available.
program Minimal;
{$APPTYPE CONSOLE}
{$R *.res}
uses
System.SysUtils, uWebUI, uWebUIWindow, uWebUITypes;
var
LWindow : IWebUIWindow;
begin
try
WebUI := TWebUI.Create;
if WebUI.Initialize then
begin
LWindow := TWebUIWindow.Create;
LWindow.Show('<html><head><script src="webui.js"></script></head> Hello World ! </html>');
WebUI.Wait;
end;
except
on E: Exception do
Writeln(E.ClassName, ': ', E.Message);
end;
end.
This text_editor is a lightweight and portable example written in Delphi and JavaScript using WebUI as the GUI.
- Open the file packages\WebUI4Delphi.dproj.
- Select the Projects→Build all projects menu option.
- Add the source directory to the search path in your applications.
- Add the "FMX" conditional define in your project options. This define is only required for Firemonkey applications.
If you find this project useful, please consider making a donation.
You can also support this project with Patreon.
You can also support this project with Liberapay.
Additional: Delphinus-Support