home *** CD-ROM | disk | FTP | other *** search
Text File | 1997-04-17 | 715 b | 19 lines | [TEXT/ToyS] |
- set dVals to dd auto dialog {size:[320, 95], contents:[¬
- {class:push button, bounds:[250, 65, 310, 85], name:"OK"}, ¬
- {class:push button, bounds:[170, 65, 230, 85], name:"Cancel"}, ¬
- {class:static text, bounds:[10, 10, 310, 10 + 32] ¬
- , contents:"This dialog will timeout at " & ((current date) + 10)'s time string} ¬
- ], timeout after:10}
-
- if dVals's item 1 then
- set msg to "The “OK” button was pressed."
- else if dVals's item 2 then
- set msg to "The “Cancel” button was pressed."
- else
- set msg to "The dialog timed-out."
- end if
-
- dd auto dialog {size:[320, 95], contents:[¬
- {class:push button, bounds:[250, 65, 310, 85], name:"OK"}, ¬
- {class:static text, bounds:[10, 10, 310, 10 + 32], contents:msg} ¬
- ]}