Copyright © 1998-2015 MultiMedia Soft

SurfaceColor.Color2 property

Previous pageReturn to chapter overviewNext page

Type

OLE_COLOR for Visual C++

long for Visual Basic

 

 

Syntax

object.SurfaceColor.Color2 [=long]

 

 

Remarks

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.

3dabm_i0000d1

 

 

See also

SurfaceColor object.

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

How to change the button colors section.