BevelButton.IconAlign

From Xojo Documentation

Property (As Integer )
aBevelButton.IconAlign = newIntegerValue
or
IntegerValue = aBevelButton.IconAlign

Supported for all project types and targets.

The alignment of the Icon within the BevelButton.

Notes

IconAlign can take on the following values:

Value Description
0 Sys Direction (Default)
1 Center
2 Left
3 Right
4 Top
5 Bottom
6 Top left
7 Bottom left
8 Top right
9 Bottom right

Sample Code

The following code places an icon in the BevelButton, aligns it, and specifies the placement of the caption. The graphic, "DatabaseQueryIcon," has been added to the project.

Me.Icon = DatabaseQueryIcon
Me.IconAlign = 6
Me.CaptionAlign = 0
Me.CaptionPlacement = 2
Me.IconDx = 2
Me.IconDy = 1