I want to use variables to define the <max> and <def> parameters in an Xdialog spinbox. The code I am trying is:
Code:
Xdialog --2spinsbox 'Change the horizontal (x) and vertical (y) start point for your cropbox:' 0 60 \
1 $owcur $xcur 'x' \
1 $ohcur $ycur 'y' 2> $temppath/xytemp.tmp
The 1 $owcur $xcur 'x' should define the <min>, <max>, <def>, <label> parameters for the first item in the spinbox, but I am getting an error:
bad range parameters. Is it impossible to use variables in this way with Xdialog, or am I overlooking something stupid?