home *** CD-ROM | disk | FTP | other *** search
Text File | 1997-03-09 | 937 b | 15 lines | [TEXT/ToyS] |
- on PetDialog(petName, petType, petRelation)
- set dItems to [¬
- {class:push button, bounds:[40, 192, 98, 212], name:"OK"}, ¬
- {class:push button, bounds:[168, 192, 226, 212], name:"Cancel"}, ¬
- {class:text field, bounds:[72, 16, 259, 32], name bounds:[8, 16, 57, 32], name:"name:", value:petName}, ¬
- {class:radio group, bounds:[26, 48, 130, 66], button offset:[120, 16], max down:4, contents:¬
- ["cat", "dog", "weasel", "snake", "moose", "parakeet", "squirrel", "gila monster"], value:petType}, ¬
- {class:radio group, bounds:[26, 142, 126, 158], button offset:[120, 16], max down:2, contents:¬
- ["love", "hate", "who cares?", "get along"], value:petRelation}, ¬
- {class:group box, name:" Relation with: ", bounds:[10, 132, 260, 180], style:secondary group}]
-
- return dd auto dialog {default:1, size:[270, 226], contents:dItems, name:"My Pets", style:movable modal} with greyscale
- end PetDialog
-
- get my PetDialog("Abbey", 3, 1)