[Gambas-user] Generic event handler - is it possible?

Fabien Bodard gambas.fr at gmail.com
Sun Sep 30 10:20:03 CEST 2018


And by using an observer ?

This observer can be created in the last object and maybe redirected to
your main class ?

The only things you have to do is to have a way to get acces to the main
object handle. Maybe via a static property.

So then the observer will duplicate the events and raise it to the main
class.

So you can indicate to the observer to raise after the diplicate one an
lock the raising from the children class before the main class catch.

If the error is managed in the far child then lock the raising else let the
main manage it.

Hobs = new observer (me) as  "Satellite "

Object.attach (hobs, CMain.Current,"Satellite")

Maybe a way....


Le dim. 30 sept. 2018 06:07, Me <adamnt42 at gmail.com> a écrit :

> On Sat, 29 Sep 2018 08:07:26 +0200
> Fabien Bodard <gambas.fr at gmail.com> wrote:
>
> > >
> > > Sorry Bruce... bad read... forget the last post
> >
> > >
> > >>
>
> Rats! You got me all excited there.
>
> regards
> Bruce
> --
> adamant42 at gmail.com
>
> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]----
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20180930/b59e5ff2/attachment-0001.html>


More information about the User mailing list