Page 1 of 1

WebView / NewView

Posted: Monday 4th September 2023 12:26pm
by paco
Hi,

how can I handle a NewView-event? I tried to attach the NewView-property to a new WebView, but NewView is always NULL ...

Code: Select all

Public Sub wbv_NewView()
Debug IsNull(wbv.NewView) ' TRUE!
End
Thanks!

Re: WebView / NewView

Posted: Tuesday 5th September 2023 3:46pm
by cogier
I am not into web components but a quick look shows that NewView is a Property not an Event. You may be looking for NewWindow which is an Event. Have a look here.

Have a look at the WebBrowser Example on the Farm. It has an example of the event being used: -

Image

Re: WebView / NewView

Posted: Tuesday 5th September 2023 8:35pm
by paco
Sorry, I should have said that it's about the gb.qt5.webview, there the event is called "NewView"