At 05:52 PM 7/13/2001 -0400, Rob St. Amant wrote:
>Hi,
>
>I'm using common graphics (ACL 5.0 and ACL 6.0 for Windows) to do some
>user interface work, which includes drawing graphical objects and text
>strings. The problem I'm running into is that I want to draw the text
>on a background whose color may not be known. (The interface is to
>some legacy code for which I can't very easily figure this out.) I've
>been using
>
>(cg:with-background-color (window <color>)
> (cg:draw-string-in-box. . .))
>
>in other contexts, which generates a box of the given color and draws
>the string on top; of course, I don't know this color. I'd like to
>have just the pixels of the characters drawn on the screen. Is there
>an appropriate function I haven't run into?
>
>Thanks,
>Rob St. Amant
Take a look at the help for the function
cg:transparent-character-background (which is setf'able). I think that the
following will work in your case:
(setf (cg:transparent-character-background window) t)
(cg:draw-string-in-box ...)
- Jeff
===================================================================
Jeff Usher Computer Science Department
<ils.nwu.edu at usher> Northwestern University
(847) 491-7165 1890 Maple Avenue, Evanston, IL 60201, USA