MIT License

项目介绍

salvadordf/WebUI4Delphi 是一个托管在 GitHub 上的开源项目,主要使用 Pascal 编写,采用 MIT License 许可证,目前获得 163 个 Star、30 次 Fork。

仓库全名
salvadordf/WebUI4Delphi
开源许可证
MIT License
Star 数
163
Fork 数
30
未关闭 Issue
2

README 摘要

WebUI4Delphi is a WebUI wrapper, which allows you to use any web browser as a GUI, with Delphi or Lazarus/FPC in the backend and HTML5 in the frontend. WebUI allows you to link your Delphi or Lazarus application with a web app that runs in a web browser installed in the operating system. Originally WebUI was created to have all the UI code in the web browser and the rest of the code in your hidden Delphi or Lazarus…

完整内容见 GitHub 原始 README 或本页 。

常见问题

WebUI4Delphi 用什么语言开发?

主要使用 Pascal 编写,采用 MIT License 许可证,目前有 163 个 Star。

WebUI4Delphi 可以免费商用吗?

仓库采用 MIT License 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 WebUI4Delphi 的源码?

可以直接克隆仓库:git clone https://github.com/salvadordf/WebUI4Delphi.git,默认分支为 main;安装与运行步骤见仓库 README。

WebUI4Delphi 最近还在维护吗?

仓库最近一次更新为 9月18日,当前有 2 个未关闭 Issue;Star 数为 163,可作为社区活跃度的参考。

关于

WebUI4Delphi is a WebUI wrapper, which allows you to use any web browser as a GUI, with Delphi or Lazarus/FPC in the backend and HTML5 in the frontend.

描述取自 GitHub 官方 API,中文内容由 GitRead 中文社区 编辑团队整理。

语言占比

Batchfile
C++
CSS
HTML
JavaScript
Pascal
Python
TypeScript

Release

贡献者

README

WebUI4Delphi Tweet

WebUI4Delphi is a WebUI wrapper, which allows you to use any web browser as a GUI, with Delphi or Lazarus/FPC in the backend and HTML5 in the frontend.

WebUI allows you to link your Delphi or Lazarus application with a web app that runs in a web browser installed in the operating system. Originally WebUI was created to have all the UI code in the web browser and the rest of the code in your hidden Delphi or Lazarus application. However, you can also decide to have a visible Delphi or Lazarus application communicating with a HTML5 app. You can get web browser events in your desktop application, call Pascal functions from JS, call JS functions from Pascal code, execute JavaScript, etc.

WebUI4Delphi can be used in Delphi or Lazarus applications for Windows, Linux and MacOS.

WebUI4Delphi was developed and tested on Delphi 13.2 and Lazarus 4.8/FPC 3.2.2 but it also supports Delphi 2010.

WebUI4Delphi includes VCL, FireMonkey (FMX), LCL and console examples.

WebUI4Delphi demos have been tested in Windows 10, Windows 11, Linux Mint 21.2 and Raspberry Pi OS.

WebUI doesn’t embed a web browser in your application. It’s used as a bridge between a desktop application and the web browser running an HTML5 app. If you need to embed a web browser instead of using the installed web browser then consider using CEF4Delphi or WebView4Delphi.

Features

  • 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.

Minimal Example

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.

More examples

Text editor

This text_editor is a lightweight and portable example written in Delphi and JavaScript using WebUI as the GUI.

text_editor

Installation

  • 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.

Support

If you find this project useful, please consider making a donation.

paypal

You can also support this project with Patreon.

Patreon donate button

You can also support this project with Liberapay.

Donate using Liberapay

Other resources

Additional: Delphinus-Support

评论

暂无评论