From Xojo Documentation

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

Class (inherits from RectControl)

Draws a rectangle.

Close DropObject MouseExit
ConstructContextualMenu KeyDown MouseMove
ContextualMenuAction KeyUp MouseUp
DragEnter MouseDown MouseWheel
DragExit MouseDrag Open
DragOver MouseEnter

Active fa-lock-32.png LockBottom TabIndex
AllowAutoDeactivate LockLeft Tooltip
AllowTabStop LockRight Top
BorderThickness LockTop TopLeftColor
BottomRightColor MouseCursor Transparent
Enabled MouseX fa-lock-32.png TrueWindow fa-lock-32.png
FillColor MouseY fa-lock-32.png Visible
Handle fa-lock-32.png Name fa-lock-32.png Width
Height PanelIndex Window fa-lock-32.png
Index fa-lock-32.png Parent
Left Scope fa-lock-32.png

AcceptFileDrop AcceptTextDrop Invalidate
AcceptPictureDrop Close Refresh
AcceptRawDataDrop DrawInto SetFocus


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

See Also

RoundRectangle control; Graphics, RectControl classes.