Rectangle
From Xojo Documentation
Class (inherits from RectControl)
Draws a rectangle.
Events | |||||||||||||||||
|
Methods | |||||||||
|
Examples
You can give a rectangle a sunken or raised appearance using the global functions LightBevelColor, DarkBevelColor, and FillColor.
// 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
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
See Also
RoundRectangle control; Graphics, RectControl classes.