ArborX


alias

Longname: alias   Open the Documentation Legend
Released: 7.61a 
Created: 7.61a 
See also: wdbm twdbm wdbmi

Summary
This command is used in modeless dialogue box scripting to define an alias so that apply scripts defined for exit/apply code2 are triggered by exit/apply code1 as well.
Example extract

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.

Syntax (7.61a)
code1:n
-1  Dialogue accepted (usually  Ctrl-A  or  Enter )
Cancel clicked
OK clicked
code2:n
-1  Dialogue accepted (usually  Ctrl-A  or  Enter )
Cancel clicked
OK clicked

Document created on 08-Feb-2003, last reviewed on 06-Jun-2003 (revision 2)