ButtonStyle.setImageHAlign and setImageVAlign: Set the alignment of the image in the Button
ButtonStyle.setImageHMargin and setImageVMargin: Set the margin of the image
Button.setImageHAlign(string)
Button.setImageHMargin(number)
Button.setImageVAlign(string)
Button.setImageVMargin(number)
string
setImageHAlign and setImageVAlign methods. String. The vertical and horizontal alignment of the image.
setImageHAlign: Can be 'LEFT', 'CENTER' or 'RIGHT'
setImageVAlign: Can be 'TOP', 'CENTER' or 'BOTTOM'
number
setImageHMargin and setImageVmargin methods. Integer. The number of pixels between the borders set with the setImageHAlign and setImageVAlign and the image.
Those methods only apply to images used in the setImageNormal, setImageRoll etc … and do not apply to the image set with the setBgImage.