|
Below is an example of a modeless dialogue, which uses the alias keyword, invoked using the twdbm.
|Font Properties
|
1
|
-
|
2
|
Text Height: ^my_th%0..10s
|
3
|
|^dummy%[5z5]1rp(2)[(138)Apply]
|
4
|
-
|
5
|
|%2..1e[OK] [Cancel]
|
6
|
[[scripts
|
7
|
alias 2 7
|
8
|
alias -1 8
|
9
|
apply 7 [[
|
10
|
wdbmi "fd"
|
11
|
th ^my_th^]]
|
12
|
|
13
|
apply 8 boxit you pressed the enter button value -1
|
14
|
apply 1 boxit you pressed the cancel button value1!
|
15
|
update () [[
|
16
|
wdb "my_th":th
|
17
|
]]
|
18
|
]]
|
19
|
-
8
- alias 2 7 = if the OK button (value 2) is clicked the value 7 is given
to the apply command.
-
9
- alias -1 8 = if you confirm the modeless dialogue box with the enter
button or strg-A (value -1) than the value 8 is given to the apply command.
|