[Gambas-devel] Event CloseWindow in WorkSpace

Benoît Minisini gambas at ...1...
Thu Apr 8 18:43:44 CEST 2010


> 2010/4/8 Benoît Minisini <gambas at ...1...>
> 
> > > Hi, it will be difficult to add a CloseWindow event to the WorkSpace? I
> > > need to know when the current window is closed, so I can validate some
> > > thing?
> > > 
> > > Or there is already a way yo do it?
> > 
> > Maybe. But why don't you use the Form close event ?
> > 
> > --
> > Benoît Minisini
> > 
> > 
> > -------------------------------------------------------------------------
> > ----- Download Intel® Parallel Studio Eval
> > Try the new software tools for yourself. Speed compiling, find bugs
> > proactively, and fine-tune applications for parallel performance.
> > See why Intel Parallel Studio got high marks during beta.
> > http://p.sf.net/sfu/intel-sw-dev
> > _______________________________________________
> > Gambas-devel mailing list
> > Gambas-devel at lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/gambas-devel
> 
> It could, but I'm adding a Class that inherits from Window.
> 
> Maybe the problem is my programing skills :)
> 
> In this example:
> 
> ---------------------------------------------------
> ' Gambas class file
> 
> Inherits Window
> 
> Public Sub _new()
> 
>   Me.Arrangement = Arrange.Fill
> 
> End
> ---------------------------------------------------
> 
> How do I implment the Close() event?

The Close event is received by the main observer of your window, normally the 
object where you created the window.

-- 
Benoît Minisini




More information about the Devel mailing list