
Are you sure? Dialogue

Thomas.Dane
Function ButtonExit(ctrlName) : ButtonControl string ctrlName // code for dialogue if( V_flag == 0 ) DoWindow/K Panel0 KillVariables/a/z KillWaves/a/z endif End
Thanks, Tom
Function ButtonExit(ctrlName) : ButtonControl string ctrlName // code for dialogue if( V_flag == 0 ) DoWindow/K Panel0 KillVariables/a/z KillWaves/a/z endif End
DoAlert [/T=titleStr] alertType, promptStr
The DoAlert operation displays an alert dialog and waits for user to click a button.
Parameters
alertType = 0: Dialog with an OK button.
1: Dialog with Yes and No buttons.
2: Dialog with Yes, No, and Cancel buttons.
promptStr Text displayed in the alert dialog.
Flags
/T=titleStr Changes the title of the dialog window from the default title.
Details
DoAlert sets the special variable
V_flag = 1: Yes clicked.
2: No clicked.
3: Cancel clicked.
Yaohua Liu
Neutron & X-ray scattering/ Materials Science/ Argonne National Lab
November 2, 2011 at 08:34 am - Permalink
November 2, 2011 at 08:25 am - Permalink