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

Re: WebView object - Event on Link click


Url fires okay here.
The problem with the Url event though is it cannot be cancelled with Stop
Event.

So Oliviers non links will cause problems.

As Benoit suggested though the Start() event can be cancelled with 'Stop
Event' so the browser doesn't see the click.

Respects
BruceS


On Wed, 9 Sept 2026 at 20:08, gbWilly <gbWilly@xxxxxxxxxxxxxx> wrote:

>
> On Wednesday, September 9th, 2026 at 18:07, Olivier Cruilles <
> olivier.cruilles@xxxxxxxx> wrote:
>
> Hello,
>
> Thank you for your answer, it helped me.
>
> So WebView1_Url() does not fire and never raise on my case (Gambas Dev
> last commit), but WebView1_MouseUp() dose the job:
>
> What do you mean don't fire. I'm on Gambas 3.19.6 at it fires and this
> also works on 3.22.1. If this stops working I'm screwed...
>
> Check below example, opens with Gambas wiki, just click any link and see
> console output the URL you clicked on and open that page. And please tell
> me it works on master
>
> gbWilly
>
> Wanna learn Gambas? - Guides overview
> <https://gambos.gambas.one/guides/index.html>
> GambOS <https://gambos.gambas.one/>
> Gambas3 for Debian/Ubuntu
> <https://gitlab.com/gbWilly/gambas3-debian-repository>
> <https://gambos.gambas.one/>
>
> *...there is always a Catch if things go wrong!*
>
>

References:
WebView object - Event on Link clickOlivier Cruilles <olivier.cruilles@xxxxxxxx>
Re: WebView object - Event on Link clickgbWilly <gbWilly@xxxxxxxxxxxxxx>
Re: WebView object - Event on Link clickBruce Steers <bsteers4@xxxxxxxxx>
Re: WebView object - Event on Link clickOlivier Cruilles <olivier.cruilles@xxxxxxxx>
Re: WebView object - Event on Link clickgbWilly <gbWilly@xxxxxxxxxxxxxx>