2 Copyright © 2003-2011, The AROS Development Team.
8 /* "muizunesupport.h" contains misc includes and
9 init stuff which is not important at the moment. */
11 #include "muizunesupport.h"
18 Object
*BT_1
, *BT_2
, *BT_3
;
21 /****************************************************************
22 Allocate resources for gui
23 *****************************************************************/
27 app
= ApplicationObject
,
28 MUIA_Application_Title
, (IPTR
) "VGroup",
29 MUIA_Application_Version
, (IPTR
) "$VER: VGroup 0.1 (14.01.03)",
30 MUIA_Application_Copyright
, (IPTR
) "© 2003-2011, The AROS Development Team",
31 MUIA_Application_Author
, (IPTR
) "The AROS Development Team",
32 MUIA_Application_Description
, (IPTR
) "Layout with VGroup",
33 MUIA_Application_Base
, (IPTR
) "VGroup",
35 SubWindow
, WD_Main
= WindowObject
,
36 MUIA_Window_Title
, (IPTR
) "Layout with VGroup",
41 Layout: VGroup - Three buttons in one vertical column
49 Child
, BT_1
= SimpleButton("Button 1"),
50 Child
, BT_2
= SimpleButton("Button 2"),
51 Child
, BT_3
= SimpleButton("Button 3"),
54 End
, /* WindowObject */
56 End
; /* ApplicationObject */
60 /* Quit application if the windowclosegadget or the esc key is pressed. */
62 DoMethod(WD_Main
, MUIM_Notify
, MUIA_Window_CloseRequest
, TRUE
,
64 MUIM_Application_ReturnID
, MUIV_Application_ReturnID_Quit
);
70 } /* init_gui(void) */
73 /****************************************************************
74 Deallocates all gui resources
75 *****************************************************************/
79 if(app
){MUI_DisposeObject(app
);}
80 } /* deinit_gui(void) */
84 /****************************************************************
86 *****************************************************************/
92 while((LONG
) DoMethod(app
, MUIM_Application_NewInput
, &sigs
) != MUIV_Application_ReturnID_Quit
)
96 sigs
= Wait(sigs
| SIGBREAKF_CTRL_C
| SIGBREAKF_CTRL_D
);
97 if(sigs
& SIGBREAKF_CTRL_C
){break;}
98 if(sigs
& SIGBREAKF_CTRL_D
){break;}
104 /****************************************************************
106 *****************************************************************/
108 int main(int argc
, char *argv
[])
114 set(WD_Main
, MUIA_Window_Open
, TRUE
);
116 if(xget(WD_Main
, MUIA_Window_Open
))
121 set(WD_Main
, MUIA_Window_Open
, FALSE
);
130 } /* main(int argc, char *argv[]) */