
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."