BevelButton.IconDy

From Xojo Documentation

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

Supported for all project types and targets.

The distance (in points) from "flush" top or bottom, depending on alignment. If center alignment is chosen, IconDy does nothing.

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