WebView / NewView

For questions about Gambas web tools.
Post Reply
paco
Posts: 15
Joined: Friday 11th February 2022 5:42pm

WebView / NewView

Post 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!
Online
User avatar
cogier
Site Admin
Posts: 1140
Joined: Wednesday 21st September 2016 2:22pm
Location: Guernsey, Channel Islands

Re: WebView / NewView

Post 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
paco
Posts: 15
Joined: Friday 11th February 2022 5:42pm

Re: WebView / NewView

Post by paco »

Sorry, I should have said that it's about the gb.qt5.webview, there the event is called "NewView"
Post Reply