home *** CD-ROM | disk | FTP | other *** search
Text File | 1997-04-08 | 1.1 KB | 17 lines | [TEXT/ToyS] |
- on PetDialog(petName, petType, petRelation)
- set iOK to {class:push button, bounds:[40, 192, 98, 212], name:"OK"}
- set iCancel to {class:push button, bounds:[168, 192, 226, 212], name:"Cancel"}
- set iName to {class:text field, bounds:[72, 16, 259, 32], name bounds:[8, 16, 57, 32], name:"name:", value:petName}
- set iAnimal to {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}
- set iRelation to {class:radio group, bounds:[26, 142, 126, 158], button offset:[120, 16], max down:2, contents:¬
- ["love", "hate", "who cares?", "get along"], value:petRelation}
- set iRelFrame to {class:group box, name:" Relation with: ", bounds:[10, 132, 260, 180], style:secondary group}
- --set iMenu to {class:pop up, label:"Menu:", bounds:[34, 229, 234, 249], label width:60, value:1, contents:¬
- -- "One;Two;(-;Three"}
-
- set dItems to [iOK, iCancel, iName, iAnimal, iRelation, iRelFrame] --, iMenu]
- return dd auto dialog {default:1, size:[270, 226], contents:dItems}
- end PetDialog
-
- get PetDialog("Abbey", 3, 1)