[Gambas-user] Detect a Window closed in Workspace
Benoît Minisini
gambas at ...1...
Mon Apr 26 18:51:41 CEST 2010
> 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
More information about the User
mailing list