Thanks for WebUI4Delphi.
How can I remove the "localhost" caption when loading the window?
OS windows
Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.
title bar
- salvadordf
- Posts: 4083
- Joined: Thu Feb 02, 2017 12:24 pm
- Location: Spain
- Contact:
Re: title bar
Try setting the document title with JavaScript :
Code: Select all
MyWindow.Run('document.title = "My custom title";');
Re: title bar
Unfortunately it didn't help.
I understand that this is in the WebUI code itself.
I understand that this is in the WebUI code itself.
- salvadordf
- Posts: 4083
- Joined: Thu Feb 02, 2017 12:24 pm
- Location: Spain
- Contact:
Re: title bar
If you control the page contents you can also use the <title> element in HTML.
If this is not what you need then add an issue with a feature request in the official WebUI project repository at GitHub.
https://github.com/webui-dev/webui
Code: Select all
LMyHTML := '<html><head><title>Page Title</title><script src="webui.js"></script></head> Hello World ! </html>';
FWindow := TWebUIWindow.Create;
FWindow.Show(LMyHTML);
https://github.com/webui-dev/webui
Re: title bar
Added issue https://github.com/webui-dev/webui/issues/327