CompuServe Messages

Intuition/C

    10-Mar-91 20:37:11
Sb: #8279-Intuition/C
Fm: Kevin Ferlazzo 76137,3535
To: Al Saveriano 72616,2232
Al, here is a snippet of code that should do it char *string = "I am a string"; struct RastPort *rp; /* set to windows RastPort */ SetAPen ( rp, 1 ); /* set the color of the text */ SetBPen ( rp, 0 ); /* set the color of the background behind the text */ SetDrMd ( rp, JAM2 ); Move ( rp, x, y ); /* Move in the rastport to the coordinates you want */ Text ( rp, string, strlen (string) ); /* write the string out */ and thats all it takes to write a string, (I'm assuming you've opened GfxBase and IntuitionBase). Any questions? Kev – "Outside of a dog, a book is Man's best friend." "Inside of a dog, its too dark to read!" – Groucho Marx