tsc_DialogResult
This enumeration is used to communicate the reason for a form's closure back to the caller of tsc_Form::ShowDialog().
enum tsc_DialogResult
{
tsc_DialogResult_None = 0, // The dialog is still running.
tsc_DialogResult_Ok = 1, // An Ok or close button was pressed.
tsc_DialogResult_Cancel = 2, // A cancel button was pressed.
tsc_DialogResult_Abort = 3, // Form aborted; a shutdown has been requested.
tsc_DialogResult_Back = 4, // For wizard forms: go back to previous.
tsc_DialogResult_Next = 5, // For wizard forms: go to next.
tsc_DialogResult_Finish = 6, // For wizard forms: finish.
tsc_DialogResult_Custom = 1000 // A plugin may use this value and higher for anything.
};
Most of these are self-explanatory in the comments.
Values starting at tsc_DialogResult_Custom can be used for any purpose where you wish to close the form programmatically, and inform the caller of ShowDialog() the reason why.