From Xojo Documentation

Revision as of 19:12, 23 July 2021 by Gperlman (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

Property (As Boolean )
aDesktopContainer.Transparent = newBooleanValue
BooleanValue = aDesktopContainer.Transparent

New in 2021r3

Supported for all project types and targets.

If True, the background shows through to the DesktopContainer; if False, the DesktkopContainer is opaque. The default is True.


DesktopContainers by default are transparent controls, which means the background shows through. The Transparent property can be set (at design time or runtime) to turn this off/on as needed. An opaque DesktopContainer flickers less on Windows, is more optimized on macOS, and on Linux child controls on DesktopContainer are clipped properly.


This example turns Transparent off:

Me.Transparent = False