2 Copyright © 2002, The AROS Development Team.
8 #include <exec/types.h>
14 #include <intuition/gadgetclass.h>
15 #include <intuition/icclass.h>
16 #include <proto/exec.h>
17 #include <proto/intuition.h>
18 #include <proto/muimaster.h>
19 #include <clib/alib_protos.h>
21 /* the following should go in a single include file which then only
22 ** constits of the public constants and members. Actually this is easiey
25 #include <libraries/mui.h>
28 #include <aros/debug.h>
35 static char *radio_entries2
[] = {"Paris","London",NULL
};
37 app
= ApplicationObject
,
38 SubWindow
, wnd
= WindowObject
,
39 WindowContents
, VGroup
,
41 MUIA_InputMode
, MUIV_InputMode_Immediate
,
42 /* MUIA_ShowSelState, FALSE, */
44 MUIA_ShowSelState
, FALSE
,
45 MUIA_Image_FontMatch
, TRUE
,
46 MUIA_Image_Spec
, MUII_RadioButton
,
47 MUIA_Frame
, MUIV_Frame_None
,
50 MUIA_ShowSelState
, FALSE
,
51 MUIA_Text_Contents
, "London",
52 MUIA_Frame
, MUIV_Frame_None
,
53 MUIA_Text_PreParse
, "\33l",
64 DoMethod(wnd
, MUIM_Notify
, MUIA_Window_CloseRequest
, TRUE
, app
, 2, MUIM_Application_ReturnID
, MUIV_Application_ReturnID_Quit
);
67 set(wnd
, MUIA_Window_Open
, TRUE
);
70 while((LONG
) DoMethod(app
, MUIM_Application_NewInput
, &sigs
) != MUIV_Application_ReturnID_Quit
)
74 sigs
= Wait(sigs
| SIGBREAKF_CTRL_C
| SIGBREAKF_CTRL_D
);
75 if (sigs
& SIGBREAKF_CTRL_C
) break;
76 if (sigs
& SIGBREAKF_CTRL_D
) break;
80 set(wnd
, MUIA_Window_Open
, FALSE
);
81 MUI_DisposeObject(app
);