From Xojo Documentation

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

Property (As Integer )
aDesktopBevelButton.IconDeltaX = newIntegerValue
IntegerValue = aDesktopBevelButton.IconDeltaX

New in 2021r3

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 DesktopBevelButton, aligns it, and specifies the position of the caption. The graphic, "DatabaseQueryIcon," has been added to the project.

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