From Xojo Documentation

Property (As Integer )
aBevelButton.CaptionPlacement = newIntegerValue
IntegerValue = aBevelButton.CaptionPlacement

Supported for all project types and targets.

The placement of the caption relative to the graphic (Icon property).


CaptionPlacement can take on the following values:

Value Description
0 Sys Direction
1 Normally
2 Right of graphic
3 Left of graphic
4 Below graphic
5 Above graphic

Sample Code

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

Me.Caption = "Fido"
Me.CaptionAlign = 0 // left
Me.CaptionDelta = 10
Me.icon = Woof
Me.CaptionPlacement = 2