From Xojo Documentation

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

Property (As Boolean )
aDesktopBevelButton.HasBackgroundColor = newBooleanValue
BooleanValue = aDesktopBevelButton.HasBackgroundColor

New in 2021r3

Supported for all project types and targets.

If True, the BackgroundColor color will be visible. The BackgroundColor is visible only on Windows and Linux.

Sample Code

The following code sets the BackgroundColor.

Me.HasBackgroundColor = True
Me.BackgroundColor = Color.Red