[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Search methods added to the WebView control
[Thread Prev] | [Thread Next]
- Subject: Re: Search methods added to the WebView control
- From: BB <adamnt42@xxxxxxxxx>
- Date: Wed, 9 Apr 2025 17:50:26 +0930
- To: user@xxxxxxxxxxxxxxxxxxxxxx
On 9/4/25 5:42 am, Benoît Minisini wrote:
Hi,In the last commit, I added three methods for searching text in the contents of a WebView (in GTK+3, QT5 and QT6 webview components).'Find(<string>, <options>)' starts a new search and highlights all the found strings. It returns the number of matches.The only option supported in common by Qt and WebKitGTK+ is case sensitivity. WebKitGTK+ have others, but not Qt. What a pity!'FindNext()' and 'FindPrevious()' will then search forward or backward.
mmm, A little bit cryptic. Could you add a facade method, say ClearFind() or something. (In a few months I bet that I will be asking how to clear the find status. 😅If you want to end the search and hide the highlighting, just call 'Find()' with no arguments.
Enjoy!
Thank you. I'm sure this will come in handy! regards b
Search methods added to the WebView control | Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx> |