2 Copyright © 2002, The AROS Development Team.
10 #include <proto/exec.h>
11 #include <proto/intuition.h>
12 #include <proto/muimaster.h>
14 #include <libraries/mui.h>
16 struct Library
*MUIMasterBase
;
24 MUIMasterBase
= (struct Library
*)OpenLibrary("muimaster.library",0);
26 app
= ApplicationObject
,
27 SubWindow
, wnd
= WindowObject
,
28 MUIA_Window_Title
, "dtpic test",
29 MUIA_Window_Activate
, TRUE
,
31 WindowContents
, VGroup
,
32 Child
, MUI_NewObject("Dtpic.mui",MUIA_Dtpic_Name
,"SYS:System/Images/AROS.png",TAG_DONE
),
43 wnd
, MUIM_Notify
, MUIA_Window_CloseRequest
, TRUE
, (IPTR
) app
,
44 2, MUIM_Application_ReturnID
, MUIV_Application_ReturnID_Quit
47 set(wnd
,MUIA_Window_Open
,TRUE
);
49 while (DoMethod(app
, MUIM_Application_NewInput
, (IPTR
) &sigs
) != MUIV_Application_ReturnID_Quit
)
53 sigs
= Wait(sigs
| SIGBREAKF_CTRL_C
| SIGBREAKF_CTRL_D
);
54 if (sigs
& SIGBREAKF_CTRL_C
) break;
55 if (sigs
& SIGBREAKF_CTRL_D
) break;
59 MUI_DisposeObject(app
);
62 CloseLibrary(MUIMasterBase
);