From Xojo Documentation

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

Property (As CaptionPositions )
aDesktopBevelButton.CaptionPosition = newCaptionPositionsValue
CaptionPositionsValue = aDesktopBevelButton.CaptionPosition

New in 2021r3

Supported for all project types and targets.

The position of the caption relative to the icon.

Sample Code

This code positions the caption to the right of the icon. The image, "Woof", is an image that has been added to the project.

Me.Caption = "Fido"
Me.CaptionAlignment = BevelButton.CaptionAlignments.Left
Me.CaptionDelta = 10
Me.icon = Woof
Me.CaptionPosition = BevelButton.CaptionPositions.RightOfIcon