Added OnLinkClick event property to TWebBrowser so you can handle clicks on links that need to be opened in an external browser (target='_blank').
https://macpgmr.github.io/MacXPlatform/lclwebbrowser-src.zipSupports Cocoa widgetset on Mac and Qt widgetset with Qt 4.8.6 libraries.
Use cases for TWebBrowser:
- Display within your app local or Web-based HTML files for help or other docs. Feel free to use HTML5, CSS and JavaScript as needed in your docs.
- Embed a Web app within your app.
- "Appify" a Web app as a way to avoid writing it twice.
- "Hybrid" app where users are restricted to specific Web pages.
The included PasMap app is an example of an embedded Web app, where it embeds the qooxdoo- / OpenLayers-based QxMap Web app in the desktop app.
- Display HTML that your app generates on the fly, for example reports. Again, include CSS and JS as needed.
Possible future use: Since WebKit-based browsers can edit as well as display HTML, it seems like someone could write a THtmlMemo control analogous to TMemo and TRichMemo, only instead of text or RTF, it edits HTML.