1 #include <intuition/intuition.h>
2 #include <proto/exec.h>
4 #include <proto/intuition.h>
5 #include <proto/alib.h>
9 struct IntuitionBase
*IntuitionBase
;
11 static struct IntuiText body
, body2
, pos
, neg
;
15 if ((IntuitionBase
= (struct IntuitionBase
*)OpenLibrary("intuition.library",39)))
17 pos
.IText
= "Positive text";
18 neg
.IText
= "Negative text";
20 body
.IText
= "Text Line 1";
21 body2
.IText
= "Text Line 2";
24 AutoRequest(0, &body
, &pos
, &neg
, 0, 0, 0, 0);
26 body
.NextText
= &body2
;
28 AutoRequest(0, &body
, &pos
, &neg
, 0, 0, 0, 0);
30 AutoRequest(0, &body
, 0, &neg
, 0, 0, 0, 0);
33 body2
.IText
= "This is a long text line";
35 AutoRequest(0, &body
, 0, &neg
, 0, 0, 0, 0);
38 CloseLibrary((struct Library
*)IntuitionBase
);
42 fprintf(stderr
, "Could not open intuition.library V39 or greater.\n");