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

Re: Error on Mint 22 with Gambas 3.20.2 when adding the gb.gui.qt.webview component


So I changed to gb.qt5 and gb.qt5.webview and everything seems to work fine.

I have to withdraw the above statement and to apologize. What I didn't test and notice (but Hans):

Other than the deprecated WebKit-component the new WebView-control doesn't support the method FindText. As search functions are indispensable for HTML-Browsers, we will be forced to switch back to the Webkit unless someone has an idea how we can emulate the following search function with the new WebView component.

Private Sub DoFind(Optional argBackward As Boolean)

    Dim sFindText As String

    If Not Trim(TextBoxFindKeyword.Text) Then Return

    sFindText = TextBoxFindKeyword.Text

    If WebViewPreview.FindText(sFindText, argBackward, CheckBoxCaseSensitive.Value, True) = True Then  '-- TRUE = Search *without* success!
       HBoxHTMLFind.Background = &HFFDFDF
    Else
       HBoxHTMLFind.Background = Color.Default
    Endif

End

With best regards

Claus