Image

Description

Specifies a image. A image is a widget which can be selected but not focused.

XML-Tag

<image>

Attributes

Attribute Domain Default Value Description
image image "" Specifies an image file to load.
selimage image "" Specifies an image file to load for the selected state.
image_p image "" Specifies an image file to load for the pressed state.
selimage_p image "" Specifies an image file to load for the pressed and selected state.
image_i image "" Specifies an image file to load for the inactive state.
selimage_i image "" Specifies an image file to load for the inactive and selected state.
alignment alignment "center" Specifies the color of the text which will be used if the element is selcted.
useratio boolean "false" use the the ratio if the image file for blitting, fitting it in the size of the image widget.
fit_width boolean "false" If set to true, the image is stretched to the width of the image widget.
fit_height boolean "false" If set to true, the image is stretched to the height of the image widget.
Additionally all general attributes can be used.

Alignment values

Value Description
center Horizontally and vertically centered.
left Left-aligned and vertically centered.
right Right-aligned and vertically centered.
top-center Top-aligned and horizontally centered.
top-left Top- and left-aligned.
top-right Top- and right-aligned.
bottom-center Bottom-aligned and horizontally centered.
bottom-left Bottom- and left-aligned.
bottom-right Bottom- and right-aligned.

Remarks

This element can be used within <mmsdialog> and <mmstheme>.
This element can have a maximum of one child widget.

Related elements

<mmsdialog>, <mmstheme>, elements