wxCloseEvent
generated from ../src/mod_gui/event/close.cppThis object is passed to a function that is set to an onClose property of a wxFrame or wxDialog. The following example vetoes the close event because the text control was changed.
frame.onclose = close;
function close(closeEvent)
{
if ( closeEvent.canVeto )
{
if ( textCtrl.modified )
{
wxMessageBox("Can't close because you didn't save the contents");
closeEvent.veto = true;
}
}
}
Constants
Properties

© 2002 - 2007 Franky Braem.