home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / next / programm / 5727 < prev    next >
Encoding:
Internet Message Format  |  1992-08-20  |  1.3 KB

  1. Path: sparky!uunet!cs.utexas.edu!uwm.edu!linac!unixhub!ditka!ntg!rosie!aozer
  2. From: aozer@next.com (Ali Ozer)
  3. Newsgroups: comp.sys.next.programmer
  4. Subject: Re: How does one color windows?
  5. Message-ID: <4741@rosie.NeXT.COM>
  6. Date: 18 Aug 92 01:03:53 GMT
  7. References: <1992Aug17.140940.22938@aio.jsc.nasa.gov>
  8. Sender: news@NeXT.COM
  9. Organization: Next Computer, Inc.
  10. Lines: 16
  11.  
  12. In article <1992Aug17.140940.22938@aio.jsc.nasa.gov> bill@epnxt.jsc.nasa.gov writes:
  13. >I am trying to change the color of a window from the default gray to let's  
  14. >say yellow.  There is a method in the window class for doing this ...  
  15. >called setBackgroundColor but it does not work.  I get no errors ... but  
  16. >the color remains grey.  The window is the main window provided by IB.  Is  
  17. >the setBackgroundColor method supported?  I do have a color monitor.
  18.  
  19. This method doesn't redisplay the window. As a first attempt, try putting a
  20. [window display] right after the place where you set the background color.
  21. If that works, then your problem probably is that the window has already
  22. been created and displayed by the time you get around to setting the color.
  23. You can try making the window deferred and making sure the color is set before
  24. it is displayed; that will assure that by the time the window is ordered
  25. front (at which time it is displayed) the background color will be set...
  26.  
  27. Ali, Ali_Ozer@NeXT.com
  28.