2 Copyright © 1995-2014, The AROS Development Team. All rights reserved.
10 #include <exec/types.h>
15 #include <proto/alib.h>
16 #include <proto/exec.h>
17 #include <proto/dos.h>
18 #include <proto/intuition.h>
19 #include <proto/muimaster.h>
20 #include <libraries/mui.h>
27 /* ######################################################################## */
31 app
= ApplicationObject
,
32 MUIA_Application_Title
, "MUI4 Test",
33 SubWindow
, wnd
= WindowObject
,
34 MUIA_Window_Title
, "Floattext Test",
35 MUIA_Window_ID
, MAKE_ID('M','4','T','E'),
36 WindowContents
, VGroup
,
37 Child
, flttext
= FloattextObject
,
38 MUIA_Floattext_Text
, "Hello",
41 Child
, btappend
= SimpleButton("Append"),
49 DoMethod(wnd
, MUIM_Notify
, MUIA_Window_CloseRequest
, TRUE
,
51 MUIM_Application_ReturnID
, MUIV_Application_ReturnID_Quit
);
53 /* Test for MUIM_Floattext_Append */
54 DoMethod(btappend
, MUIM_Notify
, MUIA_Pressed
, FALSE
,
56 MUIM_Floattext_Append
, " World!");
58 set(wnd
, MUIA_Window_Open
, TRUE
);
64 set(wnd
, MUIA_Window_Open
, FALSE
);
65 MUI_DisposeObject(app
);
71 DoMethod(app
, MUIM_Application_Execute
);