2 Copyright © 1995-2014, The AROS Development Team. All rights reserved.
6 #include <proto/exec.h>
7 #include <proto/intuition.h>
8 #include <proto/keymap.h>
9 #include <proto/graphics.h>
13 #include <exec/execbase.h>
15 static void dotest(void)
18 struct IntuiMessage
*msg
;
21 win
= OpenWindowTags(NULL
, WA_Left
, 20,
28 WA_Title
, (IPTR
)"TextBug",
29 WA_IDCMP
, IDCMP_CLOSEWINDOW
| IDCMP_RAWKEY
,
36 SetSoftStyle(win
->RPort
, FSF_BOLD
, AskSoftStyle(win
->RPort
));
37 SetAPen(win
->RPort
, 2);
38 SetBPen(win
->RPort
, 1);
40 SetDrMd(win
->RPort
, JAM2
);
41 Move(win
->RPort
, -20, 40);
42 Text(win
->RPort
, "1234567890", 10);
43 Move(win
->RPort
, 120, 40);
44 Text(win
->RPort
, "1234567890", 10);
46 SetDrMd(win
->RPort
, JAM1
);
47 Move(win
->RPort
, -20, 60);
48 Text(win
->RPort
, "1234567890", 10);
49 Move(win
->RPort
, 120, 60);
50 Text(win
->RPort
, "1234567890", 10);
53 RefreshWindowFrame(win
);
57 WaitPort(win
->UserPort
);
58 while((msg
= (struct IntuiMessage
*)GetMsg(win
->UserPort
)))
62 case IDCMP_CLOSEWINDOW
:
67 ReplyMsg((struct Message
*)msg
);
74 int main(int argc
, char **argv
)