home *** CD-ROM | disk | FTP | other *** search
- Path: news.coli.uni-sb.de!not-for-mail
- From: mreckt@cscip.uni-sb.de (Martin Recktenwald)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: WB Colors
- Date: 16 Feb 1996 08:44:02 GMT
- Organization: University of Saarbruecken, Germany
- Distribution: world
- Message-ID: <4g1g4i$6th@coli-gate.coli.uni-sb.de>
- References: <4fk1q2$kfa@strauss.udel.edu> <oj6vilbjcr7.fsf@hpsrk.fc.hp.com> <4fs9dj$f4l@btmpjg.god.bel.alcatel.be>
- NNTP-Posting-Host: cip70.cscip.uni-sb.de
- X-Newsreader: TIN [UNIX 1.3 950824BETA PL0]
-
- barnhoorn@nlev00 wrote:
- : ..just wondering: how would you suggest me to implement an application
- : that opens a window on its own screen, and will draw text in that window.
- : I copy the Workbench-mode, and the colors I get are a copy of the
- : workbench-colors (I guess - I Lock the PubScreen, get the drawinfo,
- : copy the dri_Pens and use this array of UWORDS when opening my own screen).
- : To draw text, should I a) use SetAPen(rp,1) or b) get the pen for black
- : and use that one or c) get a pen from the dri_Pens.
- : Currently, I use the first method (so using a fixed pen).
- :
- a) Is a very bad method because you don't know that pen no. 1 is a
- readable colour on the background.
- b) gives you black text, but perhaps on a black background if the WB
- background colour was black
- c) is the right method - use dri_Pens[TEXTPEN], and your text will be
- readable - unless somebody likes to use unreadable WB colours.
-
- -------------------------------------------------- mreckt@cscip.uni-sb.de
-