Execute code on GeDialog close?

On 28/05/2014 at 10:04, xxxxxxxx wrote:

Hi there.  I'm trying to write out preferences for a window, every time it is closed.  I'm making a class that inherits from c4d.gui.GeDialog, and I know that there are pre-specified function names defined, such as "CreateLayout", and "Command"...  Is there something similar (Or perhaps an ID number I can have "Command" catch?  I tried making a function named "Close", thinking that might be run when the window was closed, but no such luck.  Would anyone know of a way to execute code every time the window is closed?

Also, is there a page that lists all of these special, pre-defined functions that get executed?  Thanks!

On 30/05/2014 at 10:58, xxxxxxxx wrote:

In case anyone else is wondering, you can use AskClose:


On 30/05/2014 at 14:47, xxxxxxxx wrote:

Or DestroyWindow()