home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 4028 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.5 KB

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