Code:
;It is a valid code?
;I would like to create an alias that allows me to enlarge or shrink a dialogue with the wide or long

$_dialog(name,[w/h],n1,n2,[open/close])

_dialog {
 if $2 == w { 
 if $5 == open { did -s $1 -1 -1 $3 $4 }
 else { did -s $1 -1 -1 $4 $3 }
 }
 if $2 == h { 
 if $5 == open { did -s $1 -1 -1 $3 $4 }
 else { did -s $1 -1 -1 $4 $3 }
 }
}

;w/h Width High
;n1 Minimum
;n2 maximum extent
;open/close expand reduce

Last edited by kwell; 31/12/08 03:54 PM.