2 description "Example of automatic gui creation with bbi command 'newgui'"
4 author "laurent.guigues@creatis.insa-lyon.fr"
12 # Set the initial values of its inputs :
13 # will be used to initialize the GUI
18 # create a GUI for box 'a' and call it 'ag'
19 # this bbi macro inspects the box provided
20 # and define a complex box called agType
21 # which contains the suitable GUI components
22 # for the box provided (see User's Guide for details)
23 # an instance of 'agType' called 'ag' is then created
24 # and its output are connected to the corresponding inputs of 'a'
26 # setting "Echo" message level to 2 allow
27 # to see which commands are generated by the macro 'newgui'
32 # Define the properties of the window of the GUI box created
33 set ag.WinTitle "Automatic GUI"
38 # Output of the add box
44 # Connect changes of the GUI to the execution of the output
45 # to refresh the output each time the user interacts with the GUI
46 connect ag.BoxChange out.BoxExecute