home *** CD-ROM | disk | FTP | other *** search
Text File | 1997-04-17 | 685 b | 14 lines | [TEXT/ToyS] |
- property theDialog : {bounds:dd calc dialog bounds [260, 95], contents:[¬
- {class:push button, bounds:[190, 65, 250, 85], name:"OK", enabled:3}, ¬
- {class:push button, bounds:[110, 65, 170, 85], name:"Cancel"}, ¬
- {class:text field, bounds:[10, 36, 250, 36 + 16], name bounds:¬
- [10, 10, 250, 26], name:"?", value:"?"}] ¬
- , name:"?", style:movable modal}
-
- repeat with i from 1 to 5
- set name of theDialog to "Remember Window Position " & i
- set name of item 3 of contents of theDialog to "Enter item " & i & " of 5:"
- set dlog to dd auto dialog theDialog
- set bounds of theDialog to last item of dlog
- if item 2 of dlog then exit repeat -- If user clicked Cancel then stop
- end repeat