Rectangle.TopLeftColor

From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

Property (As Color )
aRectangle.TopLeftColor = newColorValue
or
ColorValue = aRectangle.TopLeftColor

Supported for all project types and targets.

The color of the left and top edges of the rectangle.


Example

This example sets the TopLeftColor using one of the built-in functions.

//Sunken Appearance
Me.BorderWidth=2
Me.TopLeftColor=DarkBevelColor
Me.BottomRightColor=LightBevelColor
Me.FillColor=FillColor
//Raised Appearance
Me.BorderWidth=2
Me.TopLeftColor=LightBevelColor
Me.BottomRightColor=DarkBevelColor
Me.FillColor=FillColor