GCONTROL
to create the controls), place a MidasControls widget in the location
where the GCONTROL
should place its controls and give it the variable
name of pane0; GCONTROL
then adds all of its controls on the
MidasControls widget when the macro runs.
GCONTROL
button's name.
Since we defined our button as gcontrol button state "" "Exit"
,
we need to name the ButtonGroup widget to state to let NeXtMidas pass messages
from that button group to the processMessage prodcedure in our macro.
GCONTROL
button name. Right-click and select Change Variable Name and
enter exit. You should also rename the text of the button, right-click and
select Edit Text and enter Exit for the exit button. The
button text does not need to match the button variable name and can have more
user-friendly text and helpful "toolTipText".