1 #include <proto/exec.h>
2 #include <proto/intuition.h>
3 #include <proto/keymap.h>
4 #include <proto/graphics.h>
8 #include <exec/execbase.h>
10 static void dotest(void)
13 struct IntuiMessage
*msg
;
16 win
= OpenWindowTags(NULL
, WA_Left
, 20,
23 WA_Title
, (IPTR
)"TextBug",
24 WA_IDCMP
, IDCMP_CLOSEWINDOW
| IDCMP_RAWKEY
,
31 SetSoftStyle(win
->RPort
, FSF_BOLD
, AskSoftStyle(win
->RPort
));
32 SetAPen(win
->RPort
, 2);
33 SetBPen(win
->RPort
, 1);
35 SetDrMd(win
->RPort
, JAM2
);
36 Move(win
->RPort
, -20, 40);
37 Text(win
->RPort
, "1234567890", 10);
38 Move(win
->RPort
, 120, 40);
39 Text(win
->RPort
, "1234567890", 10);
41 SetDrMd(win
->RPort
, JAM1
);
42 Move(win
->RPort
, -20, 60);
43 Text(win
->RPort
, "1234567890", 10);
44 Move(win
->RPort
, 120, 60);
45 Text(win
->RPort
, "1234567890", 10);
48 RefreshWindowFrame(win
);
52 WaitPort(win
->UserPort
);
53 while((msg
= (struct IntuiMessage
*)GetMsg(win
->UserPort
)))
57 case IDCMP_CLOSEWINDOW
:
62 ReplyMsg((struct Message
*)msg
);
69 int main(int argc
, char **argv
)