WebView / NewView

Post

Posted
Rating:
#1 (In Topic #1083)
Trainee
paco is in the usergroup ‘Trainee’
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

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

Thanks!
Online now: No Back to the top

Post

Posted
Rating:
#2
Avatar
Guru
cogier is in the usergroup ‘Guru’
cogier is in the usergroup ‘GambOS Contributor’
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: -

<IMG src="https://www.cogier.com/gambas/NewWindow.png"> </IMG>
Online now: No Back to the top

Post

Posted
Rating:
#3
Trainee
paco is in the usergroup ‘Trainee’
 Sorry, I should have said that it's about the gb.qt5.webview, there the event is called "NewView"
Online now: No Back to the top
1 guest and 0 members have just viewed this.