home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Black Box 4
/
BlackBox.cdr
/
editors
/
hypsh40b.arj
/
HYPDEVEL.LZH
/
GADGETS.HSI
< prev
next >
Wrap
Text File
|
1991-04-24
|
1KB
|
58 lines
.REMARK
Gadgets - Copyright (c) 1991 N.G.Taylor
.REMARK
Call confirm as NConfirm(message)
.NOTE Confirm
$\
┌──────────┐ ┌──────────┐
│ ~A OK ~PO*C1~Ko~E │ │ ~A CANCEL ~PO*C~Kc~E │
└──────────┘ └──────────┘
.
.REMARK
These are used in a frame as follows:-
[1] ~NThe confirm box~PSconf(feed $x)~K1~E
[2] The selector - ~N$x~PVx@Mselector;y~K2~E
[3] The stepper - ~N$s~PVs@Mstepper[$s];y~K3~E
[4] The dialogue box - ~NName input~PNdialogue;y~K4~E {$n}
[5] ~FDescription~K5~E - Details about gadgets
.
.MENU selector
Dog
Cat
Hamster
Goldfish
Rabbit
Mouse
Elephant
.
.SCRIPT conf
-- This passes its parameter on to the note
-- as the note call is not parameterised
A@NConfirm
zCp$n the $x growls menacingly
aCp$n the $x purrs gratefully
.
.MENU stepper
first|second
second|third
third|fourth
fourth|fifth
fifth|sixth
sixth|seventh
seventh|eighth
eighth|ninth
ninth|first
.
.NOTE dialogue
Enter the name of your $x here
Name: ~I$n~W20~PVn%s;y~E~Q
.
.SCRIPT Picksrch
pPick a word with the mouse
P;Ve&P;abq
A@X$e
.