Copyright © 1998-2010 MultiMedia Soft

SurfaceColor.Color2 property

Previous pageReturn to chapter overviewNext page


OLE_COLOR for Visual C++

long for Visual Basic




object.SurfaceColor.Color2 [=long]




The secondary RGB color used for calculating the gradient 3D rendering when the SurfaceColor.Render3DType property is set to COLOR_RENDER_2_COLORS.

In the sample below you can see a button using two colors for its 3D rendering: red is the primary color (set through the SurfaceColor.Color property) and blue is the secondary color.




See also

SurfaceColor object.

ColorSurfaceNormal, ColorSurfaceMO, ColorSurfaceInternal, ColorSurfaceFocus, ColorSurfaceDisabled, ColorSurfacePressed properties.

How to change the button colors section.