[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Search methods added to the WebView control


Am 18.04.25 um 01:45 schrieb Denis Crowther:
On 18/4/25 02:31, Claus Dietrich wrote:
2. Currently we load the HTML into the WebView (gb.qt5.webview) with

     WebViewDocView.Url = "file:///" & Application.Path &/ "program_doc/ doc.html"
By using Application.Path you're effectively hard coding the path to the webpage as "wherever the application is". For that to work you'd have to distribute the webpage with the executable, to be placed in the same folder as the executable.
Does putting the Webpage & files within the Appimage in the same 
folder as the executable not work? 
It would certainly work, but it is a pretty big bunch of files used as 
HTML-Help-File which would pollute the path where the executable is 
started. So I rather thought about copying all files to a temporary 
directory.
In another program I use a Help system based on a PDF file. This 
solution doesn't have this disadvantage, but a Gambas-internal 
PDF-help-reader can't compete against the features of a Gambas-internal 
HTML-help-reader.
Best regards

Claus


References:
Search methods added to the WebView controlBenoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
Re: Search methods added to the WebView controlClaus Dietrich <claus.dietrich@xxxxxxxxxx>
Re: Search methods added to the WebView controlClaus Dietrich <claus.dietrich@xxxxxxxxxx>
Re: Search methods added to the WebView controlBenoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
Re: Search methods added to the WebView controlClaus Dietrich <claus.dietrich@xxxxxxxxxx>
Re: Search methods added to the WebView controlClaus Dietrich <claus.dietrich@xxxxxxxxxx>
Re: Search methods added to the WebView controlDenis Crowther <denisc@xxxxxxxxxxxxxx>