> 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 ------------------------------------------------------------------------------ _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user