2 Copyright © 2002-2011, The AROS Development Team.
10 #include <proto/alib.h>
11 #include <proto/exec.h>
12 #include <proto/intuition.h>
13 #include <proto/muimaster.h>
15 #include <libraries/mui.h>
17 struct Library
*MUIMasterBase
;
25 MUIMasterBase
= (struct Library
*)OpenLibrary("muimaster.library",0);
27 app
= ApplicationObject
,
28 SubWindow
, wnd
= WindowObject
,
29 MUIA_Window_Title
, "dtpic test",
30 MUIA_Window_Activate
, TRUE
,
32 WindowContents
, VGroup
,
33 Child
, MUI_NewObject("Dtpic.mui",MUIA_Dtpic_Name
,"SYS:System/Images/AROS.png",TAG_DONE
),
44 wnd
, MUIM_Notify
, MUIA_Window_CloseRequest
, TRUE
, (IPTR
) app
,
45 2, MUIM_Application_ReturnID
, MUIV_Application_ReturnID_Quit
48 set(wnd
,MUIA_Window_Open
,TRUE
);
50 while (DoMethod(app
, MUIM_Application_NewInput
, (IPTR
) &sigs
) != MUIV_Application_ReturnID_Quit
)
54 sigs
= Wait(sigs
| SIGBREAKF_CTRL_C
| SIGBREAKF_CTRL_D
);
55 if (sigs
& SIGBREAKF_CTRL_C
) break;
56 if (sigs
& SIGBREAKF_CTRL_D
) break;
60 MUI_DisposeObject(app
);
63 CloseLibrary(MUIMasterBase
);