[Gambas-user] Detect a Window closed in Workspace

Benoît Minisini gambas at ...1...
Mon Apr 26 18:00:51 CEST 2010


> Hi, I got a problem, here is the scenario:
> 
> I got a WorkSpace, to this work space I add some objects, these objects
> inherits from Window, and basicaly has an Editor inside of them, I load a
> text from a file to the Editor, what I need is that when the WorkSpace tab
> is closed I need to check if there are modification without been saved.
> 
> How can I know if the ActiveWindow of the Workspace is going to be closed?

In the Close event of the window: you can check if your editor is modified 
there, and then you can stop the event if you want.

-- 
Benoît Minisini




More information about the User mailing list