!dynamic variable names
message={ value="Constructing variable names dynamically" }
text={ value="Below are 5 buttons labeled test1 through
test5. Below them is a line containing text and some
buttons. The buttons labeled ""1"", ""foreground"" and ""red""
are actually menubuttons. Clicking on one of these
gives you a menu to choose from.
    Pressing the DOIT button will change some color
of one of the buttons. Which button, which color (foreground,
background, or border) and what it will be set to are 
determined by the three menubuttons. In order to accomplish this, 
the DOIT button has to construct the correct button name
using information from the menubuttons. The way to do this
in xtpanel is by using an EVAL action and a temporary variable.
Look at the script to see how it is done." }
button={ label=test1 name=test1 }
button={ label=test2 name=test2 }
button={ label=test3 name=test3 }
button={ label=test4 name=test4 }
button={ label=test5 name=test5 }
hbox={ borderWidth=0
 message={ value="Set button" }
 menubutton={ name=testmenu1
   label=1 value=1
   itemlist={ list="1 2 3 4 5" }
   action="SET testmenu1 label $val"
 }
 menubutton={ name=testmenu2
   label=foreground value=foreground
   itemlist={ list="foreground background borderColor" }
   action="SET testmenu2 label $val"
 }
 message={ value="to" }
 menubutton={ name=testmenu3
   label=red value=red
   itemlist={ list="red green blue yellow orange purple" }
   action="SET testmenu3 label $val"
 }
 var={ name=temp }
 button={ label=DOIT 
   action="EVAL ASSIGN temp $$test$testmenu1"
   action="SET $temp $testmenu2 $testmenu3"
 }
}
