Nico de Boer wrote:
> View Composer:
> When I try setting a color to (SystemColor fromId: COLOR_3DFACE)
> when this color is nil, i get a compilation error (line 1: undeclared
> 'COLOR_3DFACE'). After setting the color through the color dialog,
> I can set the color with (SystemColor fromId: COLOR_3DFACE).
For this in particular, you can just set it to "Color face3d". Check out the
class side methods of Color for some others.
The problem arises because the Win32Constants pool dictionary, which has the
constant 'COLOR_3DFACE', is known in the context of the Color, but not in the
context of UndefinedObject.
-------------------------------------------
Bill Dargel
[hidden email]
Shoshana Technologies
100 West Joy Road, Ann Arbor, MI 48105 USA