home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.lisp.mcl
- Path: sparky!uunet!spool.mu.edu!agate!boulder!cambridge.apple.com!apple!usc!zaphod.mps.ohio-state.edu!darwin.sura.net!haven.umd.edu!mimsy!waander
- From: waander@cs.umd.edu (Bill Andersen)
- Subject: Basic color use in MCL
- Message-ID: <722536029.19873@news.Colorado.EDU>
- Lines: 30
- Sender: news
- Organization: U of Maryland, Dept. of Computer Science, Coll. Pk., MD 20742
- Distribution: co
- Date: 22 Nov 92 08:59:04 GMT
- Approved: news
- X-Note1: mail msgid was <62256@mimsy.umd.edu>
- X-Note2: message-id generated by recnews
- Lines: 30
-
-
- I just want to draw some stuff in a view in various colors. I have
- an application with a bunch of subviews inside a view inside a window.
- The stuff I want to draw is in the innermost subviews...
-
- I tried the following....
-
- (defclass my-view (view) ())
-
- (defmethod view-draw-contents ((self my-view))
- (with-focused-view self ; maybe this is redundant
- (with-fore-color *fancy-color*
- (with-pstrs ((str "Hello!"))
- (#_DrawString str)))))
-
- But the string just gets drawn in the default foreground
- color of the outermost window. What's the deal? Could someone
- supply some examples of how to do stuff with colors?? Maybe
- post it to the archive????
-
- Thanks...
-
-
- ...bill
-
- --
- / Bill Andersen (waander@cs.umd.edu) /
- / University of Maryland /
- / Department of Computer Science /
- / College Park, Maryland 20742 /
-