BevelButton.IconDeltaX

From Xojo Documentation

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

New in 2019r2

Supported for all project types and targets.

The distance (in points) from left or right, depending on alignment. If center alignment is chosen, IconDeltaX does nothing.

Sample Code

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

Me.Icon = DatabaseQueryIcon
Me.IconAlignment = BevelButton.IconAlignments.TopLeft
Me.CaptionAlignment = BevelButton.CaptionAlignments.Left
Me.CaptionPosition = BevelButton.CaptionPositions.RightOfIcon
Me.IconDeltaX = 2
Me.IconDeltaY = 1