home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / MUI / MUIBuilder22.lha / MUIBuilder / MB / GCC / example / MUIB-DemoGui.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1995-06-01  |  29.8 KB  |  1,331 lines

  1. #ifndef MAKE_ID
  2. #define MAKE_ID(a,b,c,d) ((ULONG) (a)<<24 | (ULONG) (b)<<16 | (ULONG) (c)<<8 | (ULONG) (d))
  3. #endif
  4.  
  5. #include <inline/alib.h>
  6. #include <inline/muimaster.h>
  7.  
  8.  
  9. #include "MUIB-DemoGui.h"
  10. #include "MUIB-DemoGuiExtern.h"
  11.  
  12.  
  13. struct ObjApp *CreateApp(void)
  14. {
  15.     struct ObjApp *MBObj;
  16.  
  17.     APTR    MN_label_0Project, GROUP_ROOT_0, GR_grp_0, MN_label_2Buttons, GROUP_ROOT_1;
  18.     APTR    GR_grp_1, GR_grp_2, Space_1, Space_2, GROUP_ROOT_2, obj_aux0, obj_aux1;
  19.     APTR    GR_grp_3, GR_grp_4, GR_grp_6, GR_grp_7, GR_grp_8, GROUP_ROOT_3, GR_grp_9;
  20.     APTR    Space_6, GR_grp_11, LA_label_0, LA_label_1, LA_label_2, GR_grp_12;
  21.     APTR    GR_grp_13, GROUP_ROOT_2C, obj_aux2, obj_aux3, GR_grp_3C, GR_grp_4C;
  22.     APTR    GR_grp_6C, GR_grp_7C, GR_grp_8C, GROUP_ROOT_4, GR_grp_14, Space_14;
  23.     APTR    Space_15;
  24.  
  25.     if (!(MBObj = (struct ObjApp *) AllocVec(sizeof(struct ObjApp), MEMF_PUBLIC|MEMF_CLEAR)))
  26.         return(NULL);
  27.  
  28.     MBObj->STR_TX_label_0 = "** **";
  29.     MBObj->STR_TX_label_2 = "Again\na tricky\nDemo\n\n Click everywhere !!!";
  30.     MBObj->LV_label_0Content = "Well : that is a floattext object \n \n ... and just a very small example !!";
  31.     MBObj->STR_TX_label_1 = "A popobject can contain more \n than a simple list \n(try to move the sliders !!)";
  32.  
  33.     MBObj->RA_label_0Content[0] = "PopAsl Demo";
  34.     MBObj->RA_label_0Content[1] = "PopObject Demo";
  35.     MBObj->RA_label_0Content[2] = NULL;
  36.     MBObj->STR_GR_grp_10[0] = "PopAsl";
  37.     MBObj->STR_GR_grp_10[1] = "PopObject";
  38.     MBObj->STR_GR_grp_10[2] = NULL;
  39.     MBObj->CY_label_0Content[0] = "Bad";
  40.     MBObj->CY_label_0Content[1] = "Ok";
  41.     MBObj->CY_label_0Content[2] = "Great";
  42.     MBObj->CY_label_0Content[3] = "Fantastic";
  43.     MBObj->CY_label_0Content[4] = NULL;
  44.     MBObj->RA_label_1Content[0] = "Bad";
  45.     MBObj->RA_label_1Content[1] = "Ok";
  46.     MBObj->RA_label_1Content[2] = "Great";
  47.     MBObj->RA_label_1Content[3] = "Fantastic";
  48.     MBObj->RA_label_1Content[4] = NULL;
  49.  
  50.     MBObj->BT_One = TextObject,
  51.         ButtonFrame,
  52.         MUIA_Disabled, TRUE,
  53.         MUIA_Background, MUII_ButtonBack,
  54.         MUIA_ControlChar, 'b',
  55.         MUIA_Text_Contents, "\033I[6:31]",
  56.         MUIA_Text_PreParse, "\033c",
  57.         MUIA_Text_HiChar, 'b',
  58.         MUIA_HelpNode, "BT_One",
  59.         MUIA_InputMode, MUIV_InputMode_RelVerify,
  60.     End;
  61.  
  62.     MBObj->BT_Two = TextObject,
  63.         ButtonFrame,
  64.         MUIA_Disabled, TRUE,
  65.         MUIA_Background, MUII_ButtonBack,
  66.         MUIA_ControlChar, 'b',
  67.         MUIA_Text_Contents, "\033I[6:39]",
  68.         MUIA_Text_PreParse, "\033c",
  69.         MUIA_Text_HiChar, 'b',
  70.         MUIA_HelpNode, "BT_Two",
  71.         MUIA_InputMode, MUIV_InputMode_RelVerify,
  72.     End;
  73.  
  74.     MBObj->BT_begin = SimpleButton("_Begin");
  75.  
  76.     MBObj->BT_Three = TextObject,
  77.         ButtonFrame,
  78.         MUIA_Disabled, TRUE,
  79.         MUIA_Background, MUII_ButtonBack,
  80.         MUIA_ControlChar, 'b',
  81.         MUIA_Text_Contents, "\033I[6:38]",
  82.         MUIA_Text_PreParse, "\033c",
  83.         MUIA_Text_HiChar, 'b',
  84.         MUIA_HelpNode, "BT_Three",
  85.         MUIA_InputMode, MUIV_InputMode_RelVerify,
  86.     End;
  87.  
  88.     GR_grp_0 = GroupObject,
  89.         MUIA_HelpNode, "GR_grp_0",
  90.         MUIA_Group_Horiz, TRUE,
  91.         MUIA_Group_SameWidth, TRUE,
  92.         Child, MBObj->BT_Two,
  93.         Child, MBObj->BT_begin,
  94.         Child, MBObj->BT_Three,
  95.     End;
  96.  
  97.     MBObj->BT_Four = TextObject,
  98.         ButtonFrame,
  99.         MUIA_Disabled, TRUE,
  100.         MUIA_Background, MUII_ButtonBack,
  101.         MUIA_ControlChar, 'b',
  102.         MUIA_Text_Contents, "\033I[6:30]",
  103.         MUIA_Text_PreParse, "\033c",
  104.         MUIA_Text_HiChar, 'b',
  105.         MUIA_HelpNode, "BT_Four",
  106.         MUIA_InputMode, MUIV_InputMode_RelVerify,
  107.     End;
  108.  
  109.     GROUP_ROOT_0 = GroupObject,
  110.         Child, MBObj->BT_One,
  111.         Child, GR_grp_0,
  112.         Child, MBObj->BT_Four,
  113.     End;
  114.  
  115.     MBObj->WI_Turn = WindowObject,
  116.         MUIA_Window_Title, "Turn Around !",
  117.         MUIA_Window_ID, MAKE_ID('0', 'W', 'I', 'N'),
  118.         WindowContents, GROUP_ROOT_0,
  119.     End;
  120.  
  121.     MBObj->BT_label_4 = SimpleButton("Button _1");
  122.  
  123.     MBObj->BT_label_5 = SimpleButton("Button _2");
  124.  
  125.     MBObj->BT_label_6 = SimpleButton("Button _3");
  126.  
  127.     GR_grp_1 = GroupObject,
  128.         MUIA_HelpNode, "GR_grp_1",
  129.         MUIA_Weight, 33,
  130.         Child, MBObj->BT_label_4,
  131.         Child, MBObj->BT_label_5,
  132.         Child, MBObj->BT_label_6,
  133.     End;
  134.  
  135.     Space_1 = VSpace(0);
  136.  
  137.     MBObj->TX_label_0 = TextObject,
  138.         MUIA_Background, MUII_TextBack,
  139.         MUIA_Frame, MUIV_Frame_Text,
  140.         MUIA_Text_Contents, MBObj->STR_TX_label_0,
  141.         MUIA_Text_PreParse, "\033c",
  142.         MUIA_Text_SetMin, TRUE,
  143.     End;
  144.  
  145.     Space_2 = VSpace(0);
  146.  
  147.     GR_grp_2 = GroupObject,
  148.         MUIA_HelpNode, "GR_grp_2",
  149.         MUIA_Frame, MUIV_Frame_Group,
  150.         Child, Space_1,
  151.         Child, MBObj->TX_label_0,
  152.         Child, Space_2,
  153.     End;
  154.  
  155.     GROUP_ROOT_1 = GroupObject,
  156.         MUIA_Group_Horiz, TRUE,
  157.         Child, GR_grp_1,
  158.         Child, GR_grp_2,
  159.     End;
  160.  
  161.     MBObj->MN_label_21st_button = MenuitemObject,
  162.         MUIA_Menuitem_Title, "1st menu",
  163.         MUIA_Menuitem_Shortcut, "1",
  164.     End;
  165.  
  166.     MBObj->MN_label_22nd_button = MenuitemObject,
  167.         MUIA_Menuitem_Title, "2nd menu",
  168.         MUIA_Menuitem_Shortcut, "2",
  169.     End;
  170.  
  171.     MBObj->MN_label_23rd_button = MenuitemObject,
  172.         MUIA_Menuitem_Title, "3rd menu",
  173.         MUIA_Menuitem_Shortcut, "3",
  174.     End;
  175.  
  176.     MN_label_2Buttons = MenuitemObject,
  177.         MUIA_Menuitem_Title, "Buttons",
  178.         MUIA_Family_Child, MBObj->MN_label_21st_button,
  179.         MUIA_Family_Child, MBObj->MN_label_22nd_button,
  180.         MUIA_Family_Child, MBObj->MN_label_23rd_button,
  181.     End;
  182.  
  183.     MBObj->MN_label_2 = MenustripObject,
  184.         MUIA_Family_Child, MN_label_2Buttons,
  185.     End;
  186.  
  187.     MBObj->WI_Buttons = WindowObject,
  188.         MUIA_Window_Title, "Buttons & Menus Notify",
  189.         MUIA_Window_Menustrip, MBObj->MN_label_2,
  190.         MUIA_Window_ID, MAKE_ID('1', 'W', 'I', 'N'),
  191.         WindowContents, GROUP_ROOT_1,
  192.     End;
  193.  
  194.     MBObj->SL_label_0 = SliderObject,
  195.         MUIA_HelpNode, "SL_label_0",
  196.         MUIA_Slider_Min, 0,
  197.         MUIA_Slider_Max, 100,
  198.         MUIA_Slider_Quiet, TRUE,
  199.         MUIA_Slider_Level, 0,
  200.     End;
  201.  
  202.     obj_aux1 = Label2("Level");
  203.  
  204.     obj_aux0 = GroupObject,
  205.         MUIA_Group_Columns, 2,
  206.         Child, obj_aux1,
  207.         Child, MBObj->SL_label_0,
  208.     End;
  209.  
  210.     MBObj->GA_label_0 = GaugeObject,
  211.         GaugeFrame,
  212.         MUIA_HelpNode, "GA_label_0",
  213.         MUIA_FixWidth, 15,
  214.         MUIA_Gauge_Max, 100,
  215.     End;
  216.  
  217.     MBObj->GA_label_1 = GaugeObject,
  218.         GaugeFrame,
  219.         MUIA_HelpNode, "GA_label_1",
  220.         MUIA_FixHeight, 10,
  221.         MUIA_Gauge_Horiz, TRUE,
  222.         MUIA_Gauge_Max, 100,
  223.     End;
  224.  
  225.     MBObj->SL_label_1 = SliderObject,
  226.         MUIA_HelpNode, "SL_label_1",
  227.         MUIA_Weight, 5,
  228.         MUIA_Slider_Min, 0,
  229.         MUIA_Slider_Max, 100,
  230.         MUIA_Group_Horiz, FALSE,
  231.         MUIA_Slider_Quiet, TRUE,
  232.         MUIA_Slider_Level, 0,
  233.         MUIA_Slider_Reverse, TRUE,
  234.     End;
  235.  
  236.     MBObj->GA_label_4 = GaugeObject,
  237.         GaugeFrame,
  238.         MUIA_HelpNode, "GA_label_4",
  239.         MUIA_FixHeight, 10,
  240.         MUIA_Gauge_Horiz, TRUE,
  241.         MUIA_Gauge_Max, 100,
  242.     End;
  243.  
  244.     MBObj->SL_label_3 = SliderObject,
  245.         MUIA_HelpNode, "SL_label_3",
  246.         MUIA_Weight, 5,
  247.         MUIA_Slider_Min, 0,
  248.         MUIA_Slider_Max, 100,
  249.         MUIA_Group_Horiz, FALSE,
  250.         MUIA_Slider_Quiet, TRUE,
  251.         MUIA_Slider_Level, 0,
  252.     End;
  253.  
  254.     MBObj->GA_label_6 = GaugeObject,
  255.         GaugeFrame,
  256.         MUIA_HelpNode, "GA_label_6",
  257.         MUIA_Gauge_Max, 100,
  258.     End;
  259.  
  260.     MBObj->SL_label_4 = SliderObject,
  261.         MUIA_HelpNode, "SL_label_4",
  262.         MUIA_Weight, 5,
  263.         MUIA_Slider_Min, 0,
  264.         MUIA_Slider_Max, 100,
  265.         MUIA_Group_Horiz, FALSE,
  266.         MUIA_Slider_Quiet, TRUE,
  267.         MUIA_Slider_Level, 0,
  268.         MUIA_Slider_Reverse, TRUE,
  269.     End;
  270.  
  271.     GR_grp_8 = GroupObject,
  272.         MUIA_HelpNode, "GR_grp_8",
  273.         MUIA_Group_Horiz, TRUE,
  274.         Child, MBObj->SL_label_3,
  275.         Child, MBObj->GA_label_6,
  276.         Child, MBObj->SL_label_4,
  277.     End;
  278.  
  279.     MBObj->GA_label_5 = GaugeObject,
  280.         GaugeFrame,
  281.         MUIA_HelpNode, "GA_label_5",
  282.         MUIA_FixHeight, 10,
  283.         MUIA_Gauge_Horiz, TRUE,
  284.         MUIA_Gauge_Max, 100,
  285.     End;
  286.  
  287.     GR_grp_7 = GroupObject,
  288.         MUIA_HelpNode, "GR_grp_7",
  289.         Child, MBObj->GA_label_4,
  290.         Child, GR_grp_8,
  291.         Child, MBObj->GA_label_5,
  292.     End;
  293.  
  294.     MBObj->SL_label_2 = SliderObject,
  295.         MUIA_HelpNode, "SL_label_2",
  296.         MUIA_Weight, 5,
  297.         MUIA_Slider_Min, 0,
  298.         MUIA_Slider_Max, 100,
  299.         MUIA_Group_Horiz, FALSE,
  300.         MUIA_Slider_Quiet, TRUE,
  301.         MUIA_Slider_Level, 0,
  302.     End;
  303.  
  304.     GR_grp_6 = GroupObject,
  305.         MUIA_HelpNode, "GR_grp_6",
  306.         MUIA_Group_Horiz, TRUE,
  307.         Child, MBObj->SL_label_1,
  308.         Child, GR_grp_7,
  309.         Child, MBObj->SL_label_2,
  310.     End;
  311.  
  312.     MBObj->GA_label_2 = GaugeObject,
  313.         GaugeFrame,
  314.         MUIA_HelpNode, "GA_label_2",
  315.         MUIA_FixHeight, 10,
  316.         MUIA_Gauge_Horiz, TRUE,
  317.         MUIA_Gauge_Max, 100,
  318.     End;
  319.  
  320.     GR_grp_4 = GroupObject,
  321.         MUIA_HelpNode, "GR_grp_4",
  322.         Child, MBObj->GA_label_1,
  323.         Child, GR_grp_6,
  324.         Child, MBObj->GA_label_2,
  325.     End;
  326.  
  327.     MBObj->GA_label_3 = GaugeObject,
  328.         GaugeFrame,
  329.         MUIA_HelpNode, "GA_label_3",
  330.         MUIA_FixWidth, 15,
  331.         MUIA_Gauge_Max, 100,
  332.     End;
  333.  
  334.     GR_grp_3 = GroupObject,
  335.         MUIA_HelpNode, "GR_grp_3",
  336.         MUIA_Group_Horiz, TRUE,
  337.         Child, MBObj->GA_label_0,
  338.         Child, GR_grp_4,
  339.         Child, MBObj->GA_label_3,
  340.     End;
  341.  
  342.     GROUP_ROOT_2 = GroupObject,
  343.         Child, obj_aux0,
  344.         Child, GR_grp_3,
  345.     End;
  346.  
  347.     MBObj->WI_Gauges = WindowObject,
  348.         MUIA_Window_Title, "Gauges",
  349.         MUIA_Window_ID, MAKE_ID('2', 'W', 'I', 'N'),
  350.         WindowContents, GROUP_ROOT_2,
  351.     End;
  352.  
  353.     MBObj->RA_label_0 = RadioObject,
  354.         MUIA_Frame, MUIV_Frame_Group,
  355.         MUIA_HelpNode, "RA_label_0",
  356.         MUIA_Radio_Entries, MBObj->RA_label_0Content,
  357.     End;
  358.  
  359.     Space_6 = HVSpace;
  360.  
  361.     MBObj->TX_label_2 = TextObject,
  362.         MUIA_Background, MUII_TextBack,
  363.         MUIA_Frame, MUIV_Frame_Text,
  364.         MUIA_Text_Contents, MBObj->STR_TX_label_2,
  365.         MUIA_Text_PreParse, "\033c",
  366.         MUIA_Text_SetMin, TRUE,
  367.     End;
  368.  
  369.     GR_grp_9 = GroupObject,
  370.         MUIA_HelpNode, "GR_grp_9",
  371.         Child, MBObj->RA_label_0,
  372.         Child, Space_6,
  373.         Child, MBObj->TX_label_2,
  374.     End;
  375.  
  376.     LA_label_0 = Label("File");
  377.  
  378.     MBObj->STR_PA_label_0 = String("", 80);
  379.  
  380.     MBObj->PA_label_0 = PopButton(MUII_PopUp);
  381.  
  382.     MBObj->PA_label_0 = PopaslObject,
  383.         MUIA_HelpNode, "PA_label_0",
  384.         MUIA_ControlChar, 'f',
  385.         MUIA_Popasl_Type, 0,
  386.         MUIA_Popstring_String, MBObj->STR_PA_label_0,
  387.         MUIA_Popstring_Button, MBObj->PA_label_0,
  388.     End;
  389.  
  390.     LA_label_1 = Label("Font");
  391.  
  392.     MBObj->STR_PA_label_1 = String("", 80);
  393.  
  394.     MBObj->PA_label_1 = PopButton(MUII_PopUp);
  395.  
  396.     MBObj->PA_label_1 = PopaslObject,
  397.         MUIA_HelpNode, "PA_label_1",
  398.         MUIA_ControlChar, 'o',
  399.         MUIA_Popasl_Type, 1,
  400.         MUIA_Popstring_String, MBObj->STR_PA_label_1,
  401.         MUIA_Popstring_Button, MBObj->PA_label_1,
  402.     End;
  403.  
  404.     LA_label_2 = Label("ScreenMode");
  405.  
  406.     MBObj->STR_PA_label_2 = String("", 80);
  407.  
  408.     MBObj->PA_label_2 = PopButton(MUII_PopUp);
  409.  
  410.     MBObj->PA_label_2 = PopaslObject,
  411.         MUIA_HelpNode, "PA_label_2",
  412.         MUIA_ControlChar, 's',
  413.         MUIA_Popasl_Type, 2,
  414.         MUIA_Popstring_String, MBObj->STR_PA_label_2,
  415.         MUIA_Popstring_Button, MBObj->PA_label_2,
  416.     End;
  417.  
  418.     GR_grp_11 = GroupObject,
  419.         MUIA_HelpNode, "GR_grp_11",
  420.         MUIA_Group_Columns, 2,
  421.         Child, LA_label_0,
  422.         Child, MBObj->PA_label_0,
  423.         Child, LA_label_1,
  424.         Child, MBObj->PA_label_1,
  425.         Child, LA_label_2,
  426.         Child, MBObj->PA_label_2,
  427.     End;
  428.  
  429.     MBObj->LV_label_0 = FloattextObject,
  430.         MUIA_Floattext_Text, MBObj->LV_label_0Content,
  431.         MUIA_Frame, MUIV_Frame_ReadList,
  432.     End;
  433.  
  434.     MBObj->LV_label_0 = ListviewObject,
  435.         MUIA_HelpNode, "LV_label_0",
  436.         MUIA_Listview_Input, FALSE,
  437.         MUIA_Listview_List, MBObj->LV_label_0,
  438.     End;
  439.  
  440.     MBObj->STR_PO_label_0 = String("", 80);
  441.  
  442.     MBObj->PO_label_0 = PopobjectObject,
  443.         MUIA_HelpNode, "PO_label_0",
  444.         MUIA_Popstring_String, MBObj->STR_PO_label_0,
  445.         MUIA_Popstring_Button, PopButton(MUII_PopUp),
  446.         MUIA_Popobject_Object, MBObj->LV_label_0,
  447.     End;
  448.  
  449.     MBObj->LV_label_1 = VolumelistObject,
  450.         MUIA_Frame, MUIV_Frame_InputList,
  451.     End;
  452.  
  453.     MBObj->LV_label_1 = ListviewObject,
  454.         MUIA_HelpNode, "LV_label_1",
  455.         MUIA_Listview_MultiSelect, MUIV_Listview_MultiSelect_Default,
  456.         MUIA_Listview_List, MBObj->LV_label_1,
  457.     End;
  458.  
  459.     MBObj->STR_PO_label_1 = String("", 80);
  460.  
  461.     MBObj->PO_label_1 = PopobjectObject,
  462.         MUIA_HelpNode, "PO_label_1",
  463.         MUIA_Popstring_String, MBObj->STR_PO_label_1,
  464.         MUIA_Popstring_Button, PopButton(MUII_PopUp),
  465.         MUIA_Popobject_Object, MBObj->LV_label_1,
  466.     End;
  467.  
  468.     MBObj->LV_label_2 = DirlistObject,
  469.         MUIA_Background, MUII_ListBack,
  470.         MUIA_Frame, MUIV_Frame_InputList,
  471.         MUIA_Dirlist_Directory, "env:",
  472.     End;
  473.  
  474.     MBObj->LV_label_2 = ListviewObject,
  475.         MUIA_HelpNode, "LV_label_2",
  476.         MUIA_Listview_List, MBObj->LV_label_2,
  477.     End;
  478.  
  479.     MBObj->STR_PO_label_2 = String("", 80);
  480.  
  481.     MBObj->PO_label_2 = PopobjectObject,
  482.         MUIA_HelpNode, "PO_label_2",
  483.         MUIA_Popstring_String, MBObj->STR_PO_label_2,
  484.         MUIA_Popstring_Button, PopButton(MUII_PopUp),
  485.         MUIA_Popobject_Object, MBObj->LV_label_2,
  486.     End;
  487.  
  488.     MBObj->TX_label_1 = TextObject,
  489.         MUIA_Background, MUII_TextBack,
  490.         MUIA_Frame, MUIV_Frame_Text,
  491.         MUIA_Text_Contents, MBObj->STR_TX_label_1,
  492.         MUIA_Text_PreParse, "\033c",
  493.         MUIA_Text_SetMin, TRUE,
  494.     End;
  495.  
  496.     MBObj->SL_label_0C = SliderObject,
  497.         MUIA_HelpNode, "SL_label_0C",
  498.         MUIA_Slider_Min, 0,
  499.         MUIA_Slider_Max, 100,
  500.         MUIA_Slider_Quiet, TRUE,
  501.         MUIA_Slider_Level, 0,
  502.     End;
  503.  
  504.     obj_aux3 = Label2("Level");
  505.  
  506.     obj_aux2 = GroupObject,
  507.         MUIA_Group_Columns, 2,
  508.         Child, obj_aux3,
  509.         Child, MBObj->SL_label_0C,
  510.     End;
  511.  
  512.     MBObj->GA_label_0C = GaugeObject,
  513.         GaugeFrame,
  514.         MUIA_HelpNode, "GA_label_0C",
  515.         MUIA_FixWidth, 15,
  516.         MUIA_Gauge_Max, 100,
  517.     End;
  518.  
  519.     MBObj->GA_label_1C = GaugeObject,
  520.         GaugeFrame,
  521.         MUIA_HelpNode, "GA_label_1C",
  522.         MUIA_FixHeight, 10,
  523.         MUIA_Gauge_Horiz, TRUE,
  524.         MUIA_Gauge_Max, 100,
  525.     End;
  526.  
  527.     MBObj->SL_label_1C = SliderObject,
  528.         MUIA_HelpNode, "SL_label_1C",
  529.         MUIA_Weight, 5,
  530.         MUIA_Slider_Min, 0,
  531.         MUIA_Slider_Max, 100,
  532.         MUIA_Group_Horiz, FALSE,
  533.         MUIA_Slider_Quiet, TRUE,
  534.         MUIA_Slider_Level, 0,
  535.         MUIA_Slider_Reverse, TRUE,
  536.     End;
  537.  
  538.     MBObj->GA_label_4C = GaugeObject,
  539.         GaugeFrame,
  540.         MUIA_HelpNode, "GA_label_4C",
  541.         MUIA_FixHeight, 10,
  542.         MUIA_Gauge_Horiz, TRUE,
  543.         MUIA_Gauge_Max, 100,
  544.     End;
  545.  
  546.     MBObj->SL_label_3C = SliderObject,
  547.         MUIA_HelpNode, "SL_label_3C",
  548.         MUIA_Weight, 5,
  549.         MUIA_Slider_Min, 0,
  550.         MUIA_Slider_Max, 100,
  551.         MUIA_Group_Horiz, FALSE,
  552.         MUIA_Slider_Quiet, TRUE,
  553.         MUIA_Slider_Level, 0,
  554.     End;
  555.  
  556.     MBObj->GA_label_6C = GaugeObject,
  557.         GaugeFrame,
  558.         MUIA_HelpNode, "GA_label_6C",
  559.         MUIA_Gauge_Max, 100,
  560.     End;
  561.  
  562.     MBObj->SL_label_4C = SliderObject,
  563.         MUIA_HelpNode, "SL_label_4C",
  564.         MUIA_Weight, 5,
  565.         MUIA_Slider_Min, 0,
  566.         MUIA_Slider_Max, 100,
  567.         MUIA_Group_Horiz, FALSE,
  568.         MUIA_Slider_Quiet, TRUE,
  569.         MUIA_Slider_Level, 0,
  570.         MUIA_Slider_Reverse, TRUE,
  571.     End;
  572.  
  573.     GR_grp_8C = GroupObject,
  574.         MUIA_HelpNode, "GR_grp_8C",
  575.         MUIA_Group_Horiz, TRUE,
  576.         Child, MBObj->SL_label_3C,
  577.         Child, MBObj->GA_label_6C,
  578.         Child, MBObj->SL_label_4C,
  579.     End;
  580.  
  581.     MBObj->GA_label_5C = GaugeObject,
  582.         GaugeFrame,
  583.         MUIA_HelpNode, "GA_label_5C",
  584.         MUIA_FixHeight, 10,
  585.         MUIA_Gauge_Horiz, TRUE,
  586.         MUIA_Gauge_Max, 100,
  587.     End;
  588.  
  589.     GR_grp_7C = GroupObject,
  590.         MUIA_HelpNode, "GR_grp_7C",
  591.         Child, MBObj->GA_label_4C,
  592.         Child, GR_grp_8C,
  593.         Child, MBObj->GA_label_5C,
  594.     End;
  595.  
  596.     MBObj->SL_label_2C = SliderObject,
  597.         MUIA_HelpNode, "SL_label_2C",
  598.         MUIA_Weight, 5,
  599.         MUIA_Slider_Min, 0,
  600.         MUIA_Slider_Max, 100,
  601.         MUIA_Group_Horiz, FALSE,
  602.         MUIA_Slider_Quiet, TRUE,
  603.         MUIA_Slider_Level, 0,
  604.     End;
  605.  
  606.     GR_grp_6C = GroupObject,
  607.         MUIA_HelpNode, "GR_grp_6C",
  608.         MUIA_Group_Horiz, TRUE,
  609.         Child, MBObj->SL_label_1C,
  610.         Child, GR_grp_7C,
  611.         Child, MBObj->SL_label_2C,
  612.     End;
  613.  
  614.     MBObj->GA_label_2C = GaugeObject,
  615.         GaugeFrame,
  616.         MUIA_HelpNode, "GA_label_2C",
  617.         MUIA_FixHeight, 10,
  618.         MUIA_Gauge_Horiz, TRUE,
  619.         MUIA_Gauge_Max, 100,
  620.     End;
  621.  
  622.     GR_grp_4C = GroupObject,
  623.         MUIA_HelpNode, "GR_grp_4C",
  624.         Child, MBObj->GA_label_1C,
  625.         Child, GR_grp_6C,
  626.         Child, MBObj->GA_label_2C,
  627.     End;
  628.  
  629.     MBObj->GA_label_3C = GaugeObject,
  630.         GaugeFrame,
  631.         MUIA_HelpNode, "GA_label_3C",
  632.         MUIA_FixWidth, 15,
  633.         MUIA_Gauge_Max, 100,
  634.     End;
  635.  
  636.     GR_grp_3C = GroupObject,
  637.         MUIA_HelpNode, "GR_grp_3C",
  638.         MUIA_Group_Horiz, TRUE,
  639.         Child, MBObj->GA_label_0C,
  640.         Child, GR_grp_4C,
  641.         Child, MBObj->GA_label_3C,
  642.     End;
  643.  
  644.     GROUP_ROOT_2C = GroupObject,
  645.         Child, obj_aux2,
  646.         Child, GR_grp_3C,
  647.     End;
  648.  
  649.     GR_grp_13 = GroupObject,
  650.         MUIA_HelpNode, "GR_grp_13",
  651.         Child, MBObj->TX_label_1,
  652.         Child, GROUP_ROOT_2C,
  653.     End;
  654.  
  655.     MBObj->STR_PO_label_3 = String("", 80);
  656.  
  657.     MBObj->PO_label_3 = PopobjectObject,
  658.         MUIA_HelpNode, "PO_label_3",
  659.         MUIA_Popstring_String, MBObj->STR_PO_label_3,
  660.         MUIA_Popstring_Button, PopButton(MUII_PopUp),
  661.         MUIA_Popobject_Object, GR_grp_13,
  662.     End;
  663.  
  664.     GR_grp_12 = GroupObject,
  665.         MUIA_HelpNode, "GR_grp_12",
  666.         Child, MBObj->PO_label_0,
  667.         Child, MBObj->PO_label_1,
  668.         Child, MBObj->PO_label_2,
  669.         Child, MBObj->PO_label_3,
  670.     End;
  671.  
  672.     MBObj->GR_grp_10 = RegisterObject,
  673.         MUIA_Register_Titles, MBObj->STR_GR_grp_10,
  674.         MUIA_HelpNode, "GR_grp_10",
  675.         Child, GR_grp_11,
  676.         Child, GR_grp_12,
  677.     End;
  678.  
  679.     GROUP_ROOT_3 = GroupObject,
  680.         MUIA_Group_Horiz, TRUE,
  681.         Child, GR_grp_9,
  682.         Child, MBObj->GR_grp_10,
  683.     End;
  684.  
  685.     MBObj->WI_PopUp = WindowObject,
  686.         MUIA_Window_Title, "PopUp !",
  687.         MUIA_Window_ID, MAKE_ID('3', 'W', 'I', 'N'),
  688.         WindowContents, GROUP_ROOT_3,
  689.     End;
  690.  
  691.     MBObj->CY_label_0 = CycleObject,
  692.         MUIA_HelpNode, "CY_label_0",
  693.         MUIA_Cycle_Entries, MBObj->CY_label_0Content,
  694.     End;
  695.  
  696.     MBObj->GA_label_7 = GaugeObject,
  697.         GaugeFrame,
  698.         MUIA_HelpNode, "GA_label_7",
  699.         MUIA_FixHeight, 10,
  700.         MUIA_Gauge_Horiz, TRUE,
  701.         MUIA_Gauge_Max, 3,
  702.     End;
  703.  
  704.     MBObj->SL_label_5 = SliderObject,
  705.         MUIA_HelpNode, "SL_label_5",
  706.         MUIA_Slider_Min, 0,
  707.         MUIA_Slider_Max, 3,
  708.         MUIA_Group_Horiz, FALSE,
  709.         MUIA_Slider_Level, 0,
  710.     End;
  711.  
  712.     Space_14 = HVSpace;
  713.  
  714.     MBObj->RA_label_1 = RadioObject,
  715.         MUIA_Frame, MUIV_Frame_Group,
  716.         MUIA_HelpNode, "RA_label_1",
  717.         MUIA_Radio_Entries, MBObj->RA_label_1Content,
  718.     End;
  719.  
  720.     Space_15 = HVSpace;
  721.  
  722.     MBObj->SL_label_5C = SliderObject,
  723.         MUIA_HelpNode, "SL_label_5C",
  724.         MUIA_Slider_Min, 0,
  725.         MUIA_Slider_Max, 3,
  726.         MUIA_Group_Horiz, FALSE,
  727.         MUIA_Slider_Level, 0,
  728.         MUIA_Slider_Reverse, TRUE,
  729.     End;
  730.  
  731.     GR_grp_14 = GroupObject,
  732.         MUIA_HelpNode, "GR_grp_14",
  733.         MUIA_Group_Horiz, TRUE,
  734.         Child, MBObj->SL_label_5,
  735.         Child, Space_14,
  736.         Child, MBObj->RA_label_1,
  737.         Child, Space_15,
  738.         Child, MBObj->SL_label_5C,
  739.     End;
  740.  
  741.     GROUP_ROOT_4 = GroupObject,
  742.         Child, MBObj->CY_label_0,
  743.         Child, MBObj->GA_label_7,
  744.         Child, GR_grp_14,
  745.     End;
  746.  
  747.     MBObj->WI_Connections = WindowObject,
  748.         MUIA_Window_Title, "Connections",
  749.         MUIA_Window_ID, MAKE_ID('4', 'W', 'I', 'N'),
  750.         WindowContents, GROUP_ROOT_4,
  751.     End;
  752.  
  753.     MBObj->MN_label_0Quit = MenuitemObject,
  754.         MUIA_Menuitem_Title, "Quit",
  755.         MUIA_Menuitem_Shortcut, "Q",
  756.     End;
  757.  
  758.     MN_label_0Project = MenuitemObject,
  759.         MUIA_Menuitem_Title, "Project",
  760.         MUIA_Family_Child, MBObj->MN_label_0Quit,
  761.     End;
  762.  
  763.     MBObj->MN_label_0 = MenustripObject,
  764.         MUIA_Family_Child, MN_label_0Project,
  765.     End;
  766.  
  767.     MBObj->App = ApplicationObject,
  768.         MUIA_Application_Author, "Eric Totel",
  769.         MUIA_Application_Menustrip, MBObj->MN_label_0,
  770.         MUIA_Application_Base, "MUIB-Demo",
  771.         MUIA_Application_Title, "MUIBuilder Demo",
  772.         MUIA_Application_Version, "$VER: MUIBuilder-Demo 1.00 (26.09.94)",
  773.         MUIA_Application_Copyright, "Eric Totel",
  774.         MUIA_Application_Description, "Just a tricky demo !",
  775.         SubWindow, MBObj->WI_Turn,
  776.         SubWindow, MBObj->WI_Buttons,
  777.         SubWindow, MBObj->WI_Gauges,
  778.         SubWindow, MBObj->WI_PopUp,
  779.         SubWindow, MBObj->WI_Connections,
  780.     End;
  781.  
  782.  
  783.     if (!MBObj->App)
  784.     {
  785.         FreeVec(MBObj);
  786.         return(NULL);
  787.     }
  788.  
  789.     DoMethod((Object *) MBObj->MN_label_0Quit,
  790.         MUIM_Notify, MUIA_Menuitem_Trigger, MUIV_EveryTime,
  791.         MBObj->App,
  792.         2,
  793.         MUIM_Application_ReturnID, MUIV_Application_ReturnID_Quit
  794.         );
  795.  
  796.     DoMethod((Object *) MBObj->WI_Turn,
  797.         MUIM_Notify, MUIA_Window_CloseRequest, TRUE,
  798.         MBObj->WI_Turn,
  799.         3,
  800.         MUIM_Set, MUIA_Window_Open, FALSE
  801.         );
  802.  
  803.     DoMethod((Object *) MBObj->WI_Turn,
  804.         MUIM_Notify, MUIA_Window_CloseRequest, TRUE,
  805.         MBObj->App,
  806.         2,
  807.         MUIM_Application_ReturnID, MUIV_Application_ReturnID_Quit
  808.         );
  809.  
  810.     DoMethod((Object *) MBObj->BT_One,
  811.         MUIM_Notify, MUIA_Pressed, FALSE,
  812.         MBObj->BT_One,
  813.         3,
  814.         MUIM_Set, MUIA_Disabled, TRUE
  815.         );
  816.  
  817.     DoMethod((Object *) MBObj->BT_One,
  818.         MUIM_Notify, MUIA_Pressed, FALSE,
  819.         MBObj->BT_Two,
  820.         3,
  821.         MUIM_Set, MUIA_Disabled, FALSE
  822.         );
  823.  
  824.     DoMethod((Object *) MBObj->BT_One,
  825.         MUIM_Notify, MUIA_Pressed, FALSE,
  826.         MBObj->WI_Buttons,
  827.         3,
  828.         MUIM_Set, MUIA_Window_Open, FALSE
  829.         );
  830.  
  831.     DoMethod((Object *) MBObj->BT_One,
  832.         MUIM_Notify, MUIA_Pressed, FALSE,
  833.         MBObj->WI_Gauges,
  834.         3,
  835.         MUIM_Set, MUIA_Window_Open, TRUE
  836.         );
  837.  
  838.     DoMethod((Object *) MBObj->BT_Two,
  839.         MUIM_Notify, MUIA_Pressed, FALSE,
  840.         MBObj->BT_Two,
  841.         3,
  842.         MUIM_Set, MUIA_Disabled, TRUE
  843.         );
  844.  
  845.     DoMethod((Object *) MBObj->BT_Two,
  846.         MUIM_Notify, MUIA_Pressed, FALSE,
  847.         MBObj->BT_Four,
  848.         3,
  849.         MUIM_Set, MUIA_Disabled, FALSE
  850.         );
  851.  
  852.     DoMethod((Object *) MBObj->BT_Two,
  853.         MUIM_Notify, MUIA_Pressed, FALSE,
  854.         MBObj->WI_PopUp,
  855.         3,
  856.         MUIM_Set, MUIA_Window_Open, TRUE
  857.         );
  858.  
  859.     DoMethod((Object *) MBObj->BT_Two,
  860.         MUIM_Notify, MUIA_Pressed, FALSE,
  861.         MBObj->WI_Gauges,
  862.         3,
  863.         MUIM_Set, MUIA_Window_Open, FALSE
  864.         );
  865.  
  866.     DoMethod((Object *) MBObj->BT_begin,
  867.         MUIM_Notify, MUIA_Pressed, FALSE,
  868.         MBObj->BT_One,
  869.         3,
  870.         MUIM_Set, MUIA_Disabled, FALSE
  871.         );
  872.  
  873.     DoMethod((Object *) MBObj->BT_begin,
  874.         MUIM_Notify, MUIA_Pressed, FALSE,
  875.         MBObj->WI_Buttons,
  876.         3,
  877.         MUIM_Set, MUIA_Window_Open, TRUE
  878.         );
  879.  
  880.     DoMethod((Object *) MBObj->BT_begin,
  881.         MUIM_Notify, MUIA_Pressed, FALSE,
  882.         MBObj->BT_begin,
  883.         3,
  884.         MUIM_Set, MUIA_Disabled, TRUE
  885.         );
  886.  
  887.     DoMethod((Object *) MBObj->BT_Three,
  888.         MUIM_Notify, MUIA_Pressed, FALSE,
  889.         MBObj->BT_Three,
  890.         3,
  891.         MUIM_Set, MUIA_Disabled, TRUE
  892.         );
  893.  
  894.     DoMethod((Object *) MBObj->BT_Three,
  895.         MUIM_Notify, MUIA_Pressed, FALSE,
  896.         MBObj->BT_One,
  897.         3,
  898.         MUIM_Set, MUIA_Disabled, FALSE
  899.         );
  900.  
  901.     DoMethod((Object *) MBObj->BT_Three,
  902.         MUIM_Notify, MUIA_Pressed, FALSE,
  903.         MBObj->WI_Buttons,
  904.         3,
  905.         MUIM_Set, MUIA_Window_Open, TRUE
  906.         );
  907.  
  908.     DoMethod((Object *) MBObj->BT_Three,
  909.         MUIM_Notify, MUIA_Pressed, FALSE,
  910.         MBObj->WI_Connections,
  911.         3,
  912.         MUIM_Set, MUIA_Window_Open, FALSE
  913.         );
  914.  
  915.     DoMethod((Object *) MBObj->BT_Four,
  916.         MUIM_Notify, MUIA_Pressed, FALSE,
  917.         MBObj->BT_Four,
  918.         3,
  919.         MUIM_Set, MUIA_Disabled, TRUE
  920.         );
  921.  
  922.     DoMethod((Object *) MBObj->BT_Four,
  923.         MUIM_Notify, MUIA_Pressed, FALSE,
  924.         MBObj->BT_Three,
  925.         3,
  926.         MUIM_Set, MUIA_Disabled, FALSE
  927.         );
  928.  
  929.     DoMethod((Object *) MBObj->BT_Four,
  930.         MUIM_Notify, MUIA_Pressed, TRUE,
  931.         MBObj->WI_PopUp,
  932.         3,
  933.         MUIM_Set, MUIA_Window_Open, FALSE
  934.         );
  935.  
  936.     DoMethod((Object *) MBObj->BT_Four,
  937.         MUIM_Notify, MUIA_Pressed, FALSE,
  938.         MBObj->WI_Connections,
  939.         3,
  940.         MUIM_Set, MUIA_Window_Open, TRUE
  941.         );
  942.  
  943.     DoMethod((Object *) MBObj->WI_Turn,
  944.         MUIM_Window_SetCycleChain, MBObj->BT_One,
  945.         MBObj->BT_Two,
  946.         MBObj->BT_begin,
  947.         MBObj->BT_Three,
  948.         MBObj->BT_Four,
  949.         0
  950.         );
  951.  
  952.     DoMethod((Object *) MBObj->MN_label_21st_button,
  953.         MUIM_Notify, MUIA_Menuitem_Trigger, MUIV_EveryTime,
  954.         MBObj->TX_label_0,
  955.         3,
  956.         MUIM_Set, MUIA_Text_Contents, "1st menu selected"
  957.         );
  958.  
  959.     DoMethod((Object *) MBObj->MN_label_22nd_button,
  960.         MUIM_Notify, MUIA_Menuitem_Trigger, MUIV_EveryTime,
  961.         MBObj->TX_label_0,
  962.         3,
  963.         MUIM_Set, MUIA_Text_Contents, "2nd menu selected"
  964.         );
  965.  
  966.     DoMethod((Object *) MBObj->MN_label_23rd_button,
  967.         MUIM_Notify, MUIA_Menuitem_Trigger, MUIV_EveryTime,
  968.         MBObj->TX_label_0,
  969.         3,
  970.         MUIM_Set, MUIA_Text_Contents, "3rd menu selected"
  971.         );
  972.  
  973.     DoMethod((Object *) MBObj->WI_Buttons,
  974.         MUIM_Notify, MUIA_Window_CloseRequest, TRUE,
  975.         MBObj->WI_Buttons,
  976.         3,
  977.         MUIM_Set, MUIA_Window_Open, FALSE
  978.         );
  979.  
  980.     DoMethod((Object *) MBObj->BT_label_4,
  981.         MUIM_Notify, MUIA_Pressed, FALSE,
  982.         MBObj->TX_label_0,
  983.         3,
  984.         MUIM_Set, MUIA_Text_Contents, "You clicked 1st button"
  985.         );
  986.  
  987.     DoMethod((Object *) MBObj->BT_label_5,
  988.         MUIM_Notify, MUIA_Pressed, TRUE,
  989.         MBObj->TX_label_0,
  990.         3,
  991.         MUIM_Set, MUIA_Text_Contents, "You clicked 2nd button"
  992.         );
  993.  
  994.     DoMethod((Object *) MBObj->BT_label_6,
  995.         MUIM_Notify, MUIA_Pressed, TRUE,
  996.         MBObj->TX_label_0,
  997.         3,
  998.         MUIM_Set, MUIA_Text_Contents, "You clicked 3rd button"
  999.         );
  1000.  
  1001.     DoMethod((Object *) MBObj->WI_Buttons,
  1002.         MUIM_Window_SetCycleChain, MBObj->BT_label_4,
  1003.         MBObj->BT_label_5,
  1004.         MBObj->BT_label_6,
  1005.         0
  1006.         );
  1007.  
  1008.     DoMethod((Object *) MBObj->WI_Gauges,
  1009.         MUIM_Notify, MUIA_Window_CloseRequest, TRUE,
  1010.         MBObj->WI_Gauges,
  1011.         3,
  1012.         MUIM_Set, MUIA_Window_Open, FALSE
  1013.         );
  1014.  
  1015.     DoMethod((Object *) MBObj->SL_label_0,
  1016.         MUIM_Notify, MUIA_Slider_Level, MUIV_EveryTime,
  1017.         MBObj->GA_label_0,
  1018.         3,
  1019.         MUIM_Set, MUIA_Gauge_Current, MUIV_TriggerValue
  1020.         );
  1021.  
  1022.     DoMethod((Object *) MBObj->SL_label_0,
  1023.         MUIM_Notify, MUIA_Slider_Level, MUIV_EveryTime,
  1024.         MBObj->GA_label_1,
  1025.         3,
  1026.         MUIM_Set, MUIA_Gauge_Current, MUIV_TriggerValue
  1027.         );
  1028.  
  1029.     DoMethod((Object *) MBObj->SL_label_0,
  1030.         MUIM_Notify, MUIA_Slider_Level, MUIV_EveryTime,
  1031.         MBObj->GA_label_2,
  1032.         3,
  1033.         MUIM_Set, MUIA_Gauge_Current, MUIV_TriggerValue
  1034.         );
  1035.  
  1036.     DoMethod((Object *) MBObj->SL_label_0,
  1037.         MUIM_Notify, MUIA_Slider_Level, MUIV_EveryTime,
  1038.         MBObj->GA_label_3,
  1039.         3,
  1040.         MUIM_Set, MUIA_Gauge_Current, MUIV_TriggerValue
  1041.         );
  1042.  
  1043.     DoMethod((Object *) MBObj->SL_label_0,
  1044.         MUIM_Notify, MUIA_Slider_Level, MUIV_EveryTime,
  1045.         MBObj->SL_label_1,
  1046.         3,
  1047.         MUIM_Set, MUIA_Slider_Level, MUIV_TriggerValue
  1048.         );
  1049.  
  1050.     DoMethod((Object *) MBObj->SL_label_0,
  1051.         MUIM_Notify, MUIA_Slider_Level, MUIV_EveryTime,
  1052.         MBObj->SL_label_2,
  1053.         3,
  1054.         MUIM_Set, MUIA_Slider_Level, MUIV_TriggerValue
  1055.         );
  1056.  
  1057.     DoMethod((Object *) MBObj->SL_label_0,
  1058.         MUIM_Notify, MUIA_Slider_Level, MUIV_EveryTime,
  1059.         MBObj->GA_label_4,
  1060.         3,
  1061.         MUIM_Set, MUIA_Gauge_Current, MUIV_TriggerValue
  1062.         );
  1063.  
  1064.     DoMethod((Object *) MBObj->SL_label_0,
  1065.         MUIM_Notify, MUIA_Slider_Level, MUIV_EveryTime,
  1066.         MBObj->GA_label_5,
  1067.         3,
  1068.         MUIM_Set, MUIA_Gauge_Current, MUIV_TriggerValue
  1069.         );
  1070.  
  1071.     DoMethod((Object *) MBObj->SL_label_0,
  1072.         MUIM_Notify, MUIA_Slider_Level, MUIV_EveryTime,
  1073.         MBObj->GA_label_6,
  1074.         3,
  1075.         MUIM_Set, MUIA_Gauge_Current, MUIV_TriggerValue
  1076.         );
  1077.  
  1078.     DoMethod((Object *) MBObj->SL_label_0,
  1079.         MUIM_Notify, MUIA_Slider_Level, MUIV_EveryTime,
  1080.         MBObj->SL_label_3,
  1081.         3,
  1082.         MUIM_Set, MUIA_Slider_Level, MUIV_TriggerValue
  1083.         );
  1084.  
  1085.     DoMethod((Object *) MBObj->SL_label_0,
  1086.         MUIM_Notify, MUIA_Slider_Level, MUIV_EveryTime,
  1087.         MBObj->SL_label_4,
  1088.         3,
  1089.         MUIM_Set, MUIA_Slider_Level, MUIV_TriggerValue
  1090.         );
  1091.  
  1092.     DoMethod((Object *) MBObj->SL_label_1,
  1093.         MUIM_Notify, MUIA_Slider_Level, MUIV_EveryTime,
  1094.         MBObj->GA_label_4,
  1095.         3,
  1096.         MUIM_Set, MUIA_Gauge_Current, MUIV_TriggerValue
  1097.         );
  1098.  
  1099.     DoMethod((Object *) MBObj->SL_label_3,
  1100.         MUIM_Notify, MUIA_Slider_Level, MUIV_EveryTime,
  1101.         MBObj->GA_label_6,
  1102.         3,
  1103.         MUIM_Set, MUIA_Gauge_Current, MUIV_TriggerValue
  1104.         );
  1105.  
  1106.     DoMethod((Object *) MBObj->SL_label_3,
  1107.         MUIM_Notify, MUIA_Slider_Level, MUIV_EveryTime,
  1108.         MBObj->SL_label_4,
  1109.         3,
  1110.         MUIM_Set, MUIA_Slider_Level, MUIV_TriggerValue
  1111.         );
  1112.  
  1113.     DoMethod((Object *) MBObj->SL_label_4,
  1114.         MUIM_Notify, MUIA_Slider_Level, MUIV_EveryTime,
  1115.         MBObj->GA_label_6,
  1116.         3,
  1117.         MUIM_Set, MUIA_Gauge_Current, MUIV_TriggerValue
  1118.         );
  1119.  
  1120.     DoMethod((Object *) MBObj->SL_label_4,
  1121.         MUIM_Notify, MUIA_Slider_Level, MUIV_EveryTime,
  1122.         MBObj->SL_label_3,
  1123.         3,
  1124.         MUIM_Set, MUIA_Slider_Level, MUIV_TriggerValue
  1125.         );
  1126.  
  1127.     DoMethod((Object *) MBObj->SL_label_2,
  1128.         MUIM_Notify, MUIA_Slider_Level, MUIV_EveryTime,
  1129.         MBObj->GA_label_5,
  1130.         3,
  1131.         MUIM_Set, MUIA_Gauge_Current, MUIV_TriggerValue
  1132.         );
  1133.  
  1134.     DoMethod((Object *) MBObj->WI_Gauges,
  1135.         MUIM_Window_SetCycleChain, MBObj->SL_label_0,
  1136.         MBObj->SL_label_1,
  1137.         MBObj->SL_label_3,
  1138.         MBObj->SL_label_4,
  1139.         MBObj->SL_label_2,
  1140.         0
  1141.         );
  1142.  
  1143.     DoMethod((Object *) MBObj->WI_PopUp,
  1144.         MUIM_Notify, MUIA_Window_CloseRequest, TRUE,
  1145.         MBObj->WI_PopUp,
  1146.         3,
  1147.         MUIM_Set, MUIA_Window_Open, FALSE
  1148.         );
  1149.  
  1150.     DoMethod((Object *) MBObj->RA_label_0,
  1151.         MUIM_Notify, MUIA_Radio_Active, MUIV_EveryTime,
  1152.         MBObj->GR_grp_10,
  1153.         3,
  1154.         MUIM_Set, MUIA_Group_ActivePage, MUIV_TriggerValue
  1155.         );
  1156.  
  1157.     DoMethod((Object *) MBObj->GR_grp_10,
  1158.         MUIM_Notify, MUIA_Group_ActivePage, MUIV_EveryTime,
  1159.         MBObj->RA_label_0,
  1160.         3,
  1161.         MUIM_Set, MUIA_Radio_Active, MUIV_TriggerValue
  1162.         );
  1163.  
  1164.     DoMethod((Object *) MBObj->SL_label_0C,
  1165.         MUIM_Notify, MUIA_Slider_Level, MUIV_EveryTime,
  1166.         MBObj->GA_label_0C,
  1167.         3,
  1168.         MUIM_Set, MUIA_Gauge_Current, MUIV_TriggerValue
  1169.         );
  1170.  
  1171.     DoMethod((Object *) MBObj->SL_label_0C,
  1172.         MUIM_Notify, MUIA_Slider_Level, MUIV_EveryTime,
  1173.         MBObj->GA_label_1C,
  1174.         3,
  1175.         MUIM_Set, MUIA_Gauge_Current, MUIV_TriggerValue
  1176.         );
  1177.  
  1178.     DoMethod((Object *) MBObj->SL_label_0C,
  1179.         MUIM_Notify, MUIA_Slider_Level, MUIV_EveryTime,
  1180.         MBObj->SL_label_1C,
  1181.         3,
  1182.         MUIM_Set, MUIA_Slider_Level, MUIV_TriggerValue
  1183.         );
  1184.  
  1185.     DoMethod((Object *) MBObj->SL_label_0C,
  1186.         MUIM_Notify, MUIA_Slider_Level, MUIV_EveryTime,
  1187.         MBObj->GA_label_4C,
  1188.         3,
  1189.         MUIM_Set, MUIA_Gauge_Current, MUIV_TriggerValue
  1190.         );
  1191.  
  1192.     DoMethod((Object *) MBObj->SL_label_0C,
  1193.         MUIM_Notify, MUIA_Slider_Level, MUIV_EveryTime,
  1194.         MBObj->SL_label_3C,
  1195.         3,
  1196.         MUIM_Set, MUIA_Slider_Level, MUIV_TriggerValue
  1197.         );
  1198.  
  1199.     DoMethod((Object *) MBObj->SL_label_0C,
  1200.         MUIM_Notify, MUIA_Slider_Level, MUIV_EveryTime,
  1201.         MBObj->GA_label_6C,
  1202.         3,
  1203.         MUIM_Set, MUIA_Gauge_Current, MUIV_TriggerValue
  1204.         );
  1205.  
  1206.     DoMethod((Object *) MBObj->SL_label_0C,
  1207.         MUIM_Notify, MUIA_Slider_Level, MUIV_EveryTime,
  1208.         MBObj->SL_label_4C,
  1209.         3,
  1210.         MUIM_Set, MUIA_Slider_Level, MUIV_TriggerValue
  1211.         );
  1212.  
  1213.     DoMethod((Object *) MBObj->SL_label_0C,
  1214.         MUIM_Notify, MUIA_Slider_Level, MUIV_EveryTime,
  1215.         MBObj->GA_label_5C,
  1216.         3,
  1217.         MUIM_Set, MUIA_Gauge_Current, MUIV_TriggerValue
  1218.         );
  1219.  
  1220.     DoMethod((Object *) MBObj->SL_label_0C,
  1221.         MUIM_Notify, MUIA_Slider_Level, MUIV_EveryTime,
  1222.         MBObj->SL_label_2C,
  1223.         3,
  1224.         MUIM_Set, MUIA_Slider_Level, MUIV_TriggerValue
  1225.         );
  1226.  
  1227.     DoMethod((Object *) MBObj->SL_label_0C,
  1228.         MUIM_Notify, MUIA_Slider_Level, MUIV_EveryTime,
  1229.         MBObj->GA_label_2C,
  1230.         3,
  1231.         MUIM_Set, MUIA_Gauge_Current, MUIV_TriggerValue
  1232.         );
  1233.  
  1234.     DoMethod((Object *) MBObj->SL_label_0C,
  1235.         MUIM_Notify, MUIA_Slider_Level, MUIV_EveryTime,
  1236.         MBObj->GA_label_3C,
  1237.         3,
  1238.         MUIM_Set, MUIA_Gauge_Current, MUIV_TriggerValue
  1239.         );
  1240.  
  1241.     DoMethod((Object *) MBObj->WI_PopUp,
  1242.         MUIM_Window_SetCycleChain, MBObj->RA_label_0,
  1243.         MBObj->GR_grp_10,
  1244.         MBObj->PA_label_0,
  1245.         MBObj->PA_label_1,
  1246.         MBObj->PA_label_2,
  1247.         MBObj->PO_label_0,
  1248.         MBObj->PO_label_1,
  1249.         MBObj->PO_label_2,
  1250.         MBObj->PO_label_3,
  1251.         0
  1252.         );
  1253.  
  1254.     DoMethod((Object *) MBObj->WI_Connections,
  1255.         MUIM_Notify, MUIA_Window_CloseRequest, TRUE,
  1256.         MBObj->WI_Connections,
  1257.         3,
  1258.         MUIM_Set, MUIA_Window_Open, FALSE
  1259.         );
  1260.  
  1261.     DoMethod((Object *) MBObj->CY_label_0,
  1262.         MUIM_Notify, MUIA_Cycle_Active, MUIV_EveryTime,
  1263.         MBObj->GA_label_7,
  1264.         3,
  1265.         MUIM_Set, MUIA_Gauge_Current, MUIV_TriggerValue
  1266.         );
  1267.  
  1268.     DoMethod((Object *) MBObj->CY_label_0,
  1269.         MUIM_Notify, MUIA_Cycle_Active, MUIV_EveryTime,
  1270.         MBObj->RA_label_1,
  1271.         3,
  1272.         MUIM_Set, MUIA_Radio_Active, MUIV_TriggerValue
  1273.         );
  1274.  
  1275.     DoMethod((Object *) MBObj->SL_label_5,
  1276.         MUIM_Notify, MUIA_Slider_Level, MUIV_EveryTime,
  1277.         MBObj->RA_label_1,
  1278.         3,
  1279.         MUIM_Set, MUIA_Radio_Active, MUIV_TriggerValue
  1280.         );
  1281.  
  1282.     DoMethod((Object *) MBObj->RA_label_1,
  1283.         MUIM_Notify, MUIA_Radio_Active, MUIV_EveryTime,
  1284.         MBObj->CY_label_0,
  1285.         3,
  1286.         MUIM_Set, MUIA_Cycle_Active, MUIV_TriggerValue
  1287.         );
  1288.  
  1289.     DoMethod((Object *) MBObj->RA_label_1,
  1290.         MUIM_Notify, MUIA_Radio_Active, MUIV_EveryTime,
  1291.         MBObj->SL_label_5,
  1292.         3,
  1293.         MUIM_Set, MUIA_Slider_Level, MUIV_TriggerValue
  1294.         );
  1295.  
  1296.     DoMethod((Object *) MBObj->RA_label_1,
  1297.         MUIM_Notify, MUIA_Radio_Active, MUIV_EveryTime,
  1298.         MBObj->SL_label_5C,
  1299.         3,
  1300.         MUIM_Set, MUIA_Slider_Level, MUIV_TriggerValue
  1301.         );
  1302.  
  1303.     DoMethod((Object *) MBObj->SL_label_5C,
  1304.         MUIM_Notify, MUIA_Slider_Level, MUIV_EveryTime,
  1305.         MBObj->RA_label_1,
  1306.         3,
  1307.         MUIM_Set, MUIA_Radio_Active, MUIV_TriggerValue
  1308.         );
  1309.  
  1310.     DoMethod((Object *) MBObj->WI_Connections,
  1311.         MUIM_Window_SetCycleChain, MBObj->CY_label_0,
  1312.         MBObj->SL_label_5,
  1313.         MBObj->RA_label_1,
  1314.         MBObj->SL_label_5C,
  1315.         0
  1316.         );
  1317.  
  1318.     set(MBObj->WI_Turn,
  1319.         MUIA_Window_Open, TRUE
  1320.         );
  1321.  
  1322.  
  1323.     return(MBObj);
  1324. }
  1325.  
  1326. void DisposeApp(struct ObjApp * MBObj)
  1327. {
  1328.     MUI_DisposeObject( (Object *) MBObj->App);
  1329.     FreeVec(MBObj);
  1330. }
  1331.