VW2 Changing Background Colour 
Author Message
 VW2 Changing Background Colour

Somewhere in the Win3LookPolicy, it changes the background to white.
I would like that to be grey or something less {*filter*} the eyes.

Could some kind soul lead me though changing the background colour?

Here is what I have found:
Win95WidgetPolicy initializeDefaultGenericColors
has some code refering to background colour but when I change it and
do:
Win95WidgetPolicy initialize
Win95LookPolicy initialize

Nothing changes.

Thanks

Kevin

Kevin Driedger                    | CrossKeys Systems Corporation

http://www.*-*-*.com/ ~driedge   | 362 Terry Fox Dr., Kanata, ON K2K 2P5

--
Kevin Driedger                    | CrossKeys Systems Corporation

http://www.*-*-*.com/ ~driedge   | 362 Terry Fox Dr., Kanata, ON K2K 2P5



Mon, 06 Jul 1998 03:00:00 GMT  
 VW2 Changing Background Colour
Hi Kevin! I'm suprised Frank didn't know this one!

   "Could some kind soul lead me though changing the background colour?"

Try this -- it works in 2.0; haven't tried it in 2.5 yet, but I don't
anticipate it breaking:

   Screen default defaultPaintPreferences at: #backgroundColor put:
myColorValue.
   ScheduledControllers restore.

Unfortunately, it goes away with the image, so you'll have to dig deeper
into the start-up sequence to make such a change permanent. The "easy" way
is to put it into your root Application's #startUp  method, but that will
allow the screens to draw twice, with the wrong color the first time,
which might be okay if you start with only a product launcher or splash
screen.

The "right" way may involve looking at Screen class methods, like
#preInstall, #install, #postSnapshot, etc., but be careful, because bug
insertion here will result in an unrunnable image!


 : Bytesmiths, the Smalltalk specialists <http://www.bytesmiths.com>
 : "This is witty signature 1 of 47,288."



Wed, 08 Jul 1998 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. How to change Pythonwin background colour?

2. Changing background colour of BLT hiertable

3. Changing image background colour on canvas?

4. changing background colour of an rc_graphic window

5. Background colour on graph

6. C55 Internet & Background Colour

7. background colour for menus

8. Aqua menu background colour.

9. Setting image background colour in text widget?

10. can't make image and background colour match

11. AbtHtmlTableColumn: change colour of heading?

12. Changing colour of fields on reports.

 

 
Powered by phpBB® Forum Software