Label

Label widgets are for displaying text.

Properties

Label widgets have the following attributes/properties:

PropertyDescriptionRequiredIn templateDefaultScript
nameThe name of the widgetNoN/A_labelnnRead-only
xHorizontal screen positionYesNoN/AYes
yVertical screen positionYesNoN/AYes
widthWidth of the widgetNoYesNoneYes
heightHeight of the widgetNoYesNoneYes
templateTemplate to base the widget onNoN/AN/ANo
captionText to display in the labelNoNoNoneYes
visibleWhether or not the widget is shownNoN/ATrueYes
fontTruetype font file to useYes*YesN/AYes
fontcolorColour to use for the textNoYes#FFFFFFYes
fontsizeThe size of the text (in points)NoYes16No
textalignText alignmentNoYesleftYes
autosizeAutosize the widget to the text or notNoYesfalseYes
wordwrapAutomatically wrap the text to multiple linesNoYesfalseYes

*: Must be specified either in the template or in widget itself

Label widgets have no methods or events.