Article View: comp.sys.next.programmer
Article #1254Re: How does one color windows?
From: Ali Ozer
Date: Tue, 18 Aug 1992 01:03
Date: Tue, 18 Aug 1992 01:03
16 lines
1409 bytes
1409 bytes
In article <1992Aug17.140940.22938@aio.jsc.nasa.gov> bill@epnxt.jsc.nasa.gov writes: >I am trying to change the color of a window from the default gray to let's >say yellow. There is a method in the window class for doing this ... >called setBackgroundColor but it does not work. I get no errors ... but >the color remains grey. The window is the main window provided by IB. Is >the setBackgroundColor method supported? I do have a color monitor. This method doesn't redisplay the window. As a first attempt, try putting a [window display] right after the place where you set the background color. If that works, then your problem probably is that the window has already been created and displayed by the time you get around to setting the color. You can try making the window deferred and making sure the color is set before it is displayed; that will assure that by the time the window is ordered front (at which time it is displayed) the background color will be set... Ali, Ali_Ozer@NeXT.com
Technical Details
Message-ID:
<4741@rosie.NeXT.COM>Path:
arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!uwm.edu!linac!unixhub!ditka!ntg!rosie!aozerReferences:
<1992Aug17.140940.22938@aio.jsc.nasa.gov>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!uwm.edu!linac!unixhub!ditka!ntg!rosie!aozer From: aozer@next.com (Ali Ozer) Newsgroups: comp.sys.next.programmer Subject: Re: How does one color windows? Message-ID: <4741@rosie.NeXT.COM> Date: 18 Aug 92 01:03:53 GMT References: <1992Aug17.140940.22938@aio.jsc.nasa.gov> Sender: news@NeXT.COM Organization: Next Computer, Inc. Lines: 16