WebView / NewView

For questions about Gambas web tools.
Post Reply
paco
Newbie
Posts: 18
Joined: Fri Feb 11, 2022 5:42 pm

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!
User avatar
cogier
Site Admin
Posts: 1206
Joined: Wed Sep 21, 2016 2:22 pm
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
Newbie
Posts: 18
Joined: Fri Feb 11, 2022 5:42 pm

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