2 Copyright © 2004, The AROS Development Team. All rights reserved.
6 #include <exec/types.h>
12 #include <intuition/gadgetclass.h>
13 #include <intuition/icclass.h>
14 #include <proto/exec.h>
15 #include <proto/intuition.h>
16 #include <proto/muimaster.h>
17 #include <clib/alib_protos.h>
19 #include <libraries/mui.h>
24 Object
*application
, *window
, *b1
, *b2
, *b3
;
26 application
= ApplicationObject
,
27 SubWindow
, window
= WindowObject
,
28 MUIA_Window_Title
, (IPTR
) "Disable",
29 MUIA_Window_Activate
, TRUE
,
31 WindowContents
, (IPTR
) VGroup
,
32 Child
, (IPTR
) (b1
= ImageButton("Test", "THEME:Images/Gadgets/Test")),
34 Child
, (IPTR
) (b2
= SimpleButton("Disable")),
35 Child
, (IPTR
) (b3
= SimpleButton("Enable")),
47 window
, MUIM_Notify
, MUIA_Window_CloseRequest
, TRUE
,
48 (IPTR
) application
, 2, MUIM_Application_ReturnID
,
49 MUIV_Application_ReturnID_Quit
54 b2
, MUIM_Notify
, MUIA_Pressed
, FALSE
,
55 (IPTR
) b1
, 3, MUIM_Set
, MUIA_Disabled
, TRUE
60 b3
, MUIM_Notify
, MUIA_Pressed
, FALSE
,
61 (IPTR
) b1
, 3, MUIM_Set
, MUIA_Disabled
, FALSE
64 set(window
,MUIA_Window_Open
,TRUE
);
70 application
, MUIM_Application_NewInput
, (IPTR
) &sigs
71 ) != MUIV_Application_ReturnID_Quit
76 sigs
= Wait(sigs
| SIGBREAKF_CTRL_C
| SIGBREAKF_CTRL_D
);
77 if (sigs
& SIGBREAKF_CTRL_C
) break;
78 if (sigs
& SIGBREAKF_CTRL_D
) break;
82 MUI_DisposeObject(application
);