From Xojo Documentation
The distance (in points) from flush left or right, depending on alignment. If center alignment is chosen, IconDx does nothing.
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 Editor.