Background colours and sub-presenters...

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Background colours and sub-presenters...

Mark Derricutt-2
When editing a dialog the default background colour is the standard
lightgray/silver that most dialogs have, but if I place internal
container presenter its default colour is an unsightly white ( even thou
its set to nil ).

Is this a bug in the underlying container class or something I'm missing?

Also, I notice such coponents as toolbars have their colour set to
"SystemColour lookup: xxx" ( or something of the like, the laptops not
next to me to check ) yet I can't set/use a system myself - is there
some mystical encantation I've forgotten to pray or just something I'm
not supposed to do?




--
Discouragement is a dissatisfaction with the past, a distaste for the
present, and a distrust of the future - Maree De Jong, CLCA.

Mark Derricutt   ---   mark@ talios.com   ---   http://www.talios.com


Reply | Threaded
Open this post in threaded view
|

Re: Background colours and sub-presenters...

Yar Hwee Boon-3
On Sat, 21 Aug 2004 18:16:27 +1200, Mark Derricutt <[hidden email]> wrote:

> Also, I notice such coponents as toolbars have their colour set to  
> "SystemColour lookup: xxx" ( or something of the like, the laptops not  
> next to me to check ) yet I can't set/use a system myself - is there  
> some mystical encantation I've forgotten to pray or just something I'm  
> not supposed to do?

See  
http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&c2coff=1&threadm=3ea5b95b%241%40news.totallyobjects.com&rnum=2&prev=/groups%3Fhl%3Den%26lr%3D%26ie%3DUTF-8%26c2coff%3D1%26q%3DCOLOR_3DFACE%26btnG%3DSearch%26meta%3Dgroup%253Dcomp.lang.smalltalk.dolphin

You can also copy and paste the color from another view that has already  
defined it as such, using the aspect's context menu.

--
Regards
Hwee Boon
MotionObj


Reply | Threaded
Open this post in threaded view
|

Re: Background colours and sub-presenters...

Andy Bower-3
In reply to this post by Mark Derricutt-2
Mark,

> When editing a dialog the default background colour is the standard
> lightgray/silver that most dialogs have, but if I place internal
> container presenter its default colour is an unsightly white ( even
> thou its set to nil ).
>
> Is this a bug in the underlying container class or something I'm
> missing?
>
> Also, I notice such coponents as toolbars have their colour set to
> "SystemColour lookup: xxx" ( or something of the like, the laptops
> not next to me to check ) yet I can't set/use a system myself - is
> there some mystical encantation I've forgotten to pray or just
> something I'm not supposed to do?

We normally use "Color face3d" as suggested by Yar Hwee Boon.
Dolphin Smalltalk was actually created (but never realized) as a
successor to a 4GL system called Intuitive Solution:
http://www.object-arts.co.uk/wiki/html/Dolphin/IntuitiveSolution.htm
It's interesting to note that this system had the ability for views to
"inherit" default colours from their parents. At the time (circa 1994)
we were afraid that this search for default colours might slow the
loading of Dolphin views down so we didn't include it. At that time
Dolphin was only just about fast enough on a Pentium 100 so we were
worried about such things. In retrospect it would have probably been a
good idea to implement this feature and wait for Moore's law to help
out.

Best regards,


Andy Bower
Dolphin Support
www.object-arts.com


Reply | Threaded
Open this post in threaded view
|

Re: Background colours and sub-presenters...

talios@gmail.com
Andy Bower wrote:

> We normally use "Color face3d" as suggested by Yar Hwee Boon.

Cool, works a treat thanks.