Textbox

Description

Specifies a textbox. A textbox is a widget which can be selected and focused.

XML-Tag

<textbox>

Attributes

Attribute Domain Default Value Description
font.path string "" Specifies the directory where the font file is located.
font.name string "" Specifies the filename of the font to use.
font.size pixel "22" Specifies the font size in pixel.
color color "#c0c0c0ff" Specifies the text color.
selcolor color "#ffffffff" Specifies the text color of the textbox in selected state.
alignment alignment value "center" Specifies the alignment of the text inside the textbox.
wrap boolean "true" Specifies if the text should be wrapped.
splitwords boolean "true" Specifies if words at the end of a line should be split. Works only if wrap="true".
text string "" This is the content of the textbox. The text can have linefeeds (\n / 0x0a) to separate paragraphs.
translate boolean "false" If set to "true", the internal translation feature is used. For more info look here.
Additionally all general and border 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 as child within windows and widgets.
It cannot have any child widgets.

Related elements

elements


<<< GUI-Reference