Buttons to close modal dialog
As I understand it, only a maximum of two buttons can close a modal dialog: "OK" and "Cancel" (or other similarly named buttons).What I'd like is to have another button which does something (say, set a variable), then closes the dialog as if I'd pressed the "OK" button. Something like this: Names Default To Here( 1 );
a=0;
nw = New Window( "Demo",
<<modal,
<<returnresult,
Text Box( "A modal dia...