BevelButton.Icon

From Xojo Documentation
Jump to: navigation, search
Property (As Picture)
aBevelButton.Icon = newPictureValue
or
PictureValue = aBevelButton.Icon

The name of the graphic to use as the icon.


Notes

Drag the graphic to the Project Editor or import it using File ↠ Import. Icon supports pictures from any source, including those created at runtime with the Picture constructor. It also supports transparency, either by setting the Transparent property of the Picture to 1 or via the Picture’s Mask.


Example

The following example places an icon in the bevelbutton, aligns it, and specifies the placement of the caption. The graphic, "databasequery," has been added to the Project Editor.

Me.icon=databasequery
Me.iconalign=6
Me.captionalign=0
Me.captionplacement=2
Me.icondx=2
Me.icondy=1
Personal tools
Namespaces

Variants
Actions
Main
Documentation
Community
Toolbox
Help