[Gambas-user] Detect a Window closed in Workspace

David Villalobos Cambronero david.villalobos.c at ...626...
Mon Apr 26 19:27:00 CEST 2010


2010/4/26 Benoît Minisini <gambas at ...1...>

> > You will have to help out a bit more :)
> >
> > Here is the header of the class Added to the Workspace:
> >
> > ' Gambas class file
> >
> > Inherits Window
> >
> > Private $hPHPEditor As Editor
> >
> > Public Sub _new()
> >
> >   Me.Arrangement = Arrange.Fill
> >   Me.Expand = True
> >
> >   $hPHPEditor = New Editor(Me) As "PHPEditor"
> >   $hPHPEditor.Expand = True
> >   $hPHPEditor.Highlight = Highlight.Custom
> >
> > End Sub
> >
> > How do I implement the Close event in this case?
>
> As any other object. When you instanciate the Window class, the object
> where
> you instanciate it becomes its event observer, provided that you specified
> an
> event handler prefix with the AS keyword.
>
> Regards,
>
> --
> Benoît Minisini
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>


Now I got it, thanks

-- 
Regards
---
David



More information about the User mailing list