From Xojo Documentation

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

Property (As Integer )
aDesktopBevelButton.CaptionDelta = newIntegerValue
IntegerValue = aDesktopBevelButton.CaptionDelta

New in 2021r3

Supported for all project types and targets.

The distance (in pixels) of the caption from the left of the button.

Sample Code

The following example moves the caption 10 pixels from the left.

Me.Caption = "Caption"
Me.CaptionAlign = 0 // left
Me.CaptionDelta = 10