2 # $Id: mixedform,v 1.6 2010/01/13 10:47:35 tom Exp $
6 backtitle="An Example for the use of --mixedform:"
8 while test $returncode != 1 && test $returncode != 250
12 value=`$DIALOG --title "Mixed form demonstration" --ok-label "Submit" \
13 --backtitle "$backtitle" \
15 --mixedform "Here is a possible piece of a configuration program." \
17 "Username :" 1 1 "Kiran" 1 20 10 0 2 \
18 "Password :" 2 1 "" 2 20 8 0 1 \
19 "Retype Password :" 3 1 "" 3 20 8 0 1 \
20 "HOME :" 4 1 "Cisco" 4 20 40 0 0 \
24 show=`echo "$value" |sed -e 's/^/ /'`
30 --backtitle "$backtitle" \
31 --yesno "Really quit?" 10 30
44 --backtitle "$backtitle" --no-collapse --cr-wrap \
45 --msgbox "Resulting data:\n\
49 echo "Button 2 (Help) pressed."
53 echo "Button 3 (Extra) pressed."
57 echo "Return code was $returncode"