Re-enabled use of AROS.Boot file due to lack of general enthusiasm for
[tangerine.git] / test / Zune / dtpic.c
blobc463611824b9a1aa10062ffcdfc47b46de66e8d3
1 /*
2 Copyright © 2002, The AROS Development Team.
3 All rights reserved.
5 $Id$
6 */
8 #include <dos/dos.h>
10 #include <proto/exec.h>
11 #include <proto/intuition.h>
12 #include <proto/muimaster.h>
14 #include <libraries/mui.h>
16 struct Library *MUIMasterBase;
18 Object *app;
20 int main(void)
22 Object *wnd;
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),
33 End,
34 End,
35 End;
37 if (app)
39 ULONG sigs = 0;
41 DoMethod
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)
51 if (sigs)
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);
64 return 0;