🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.sys.next.programmer
2 messages
2 total messages Started by bill Mon, 17 Aug 1992 14:09
How does one color windows?
#1193
Author: bill
Date: Mon, 17 Aug 1992 14:09
9 lines
787 bytes
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.

Thanks in advance.

			Bill
Re: How does one color windows?
#1254
Author: Ali Ozer
Date: Tue, 18 Aug 1992 01:03
16 lines
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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads