Label object

The Label widget displays static text

Event Description
Label:onClick() Event fired when the user clicks on the Label
Label:onContext() Event fired when the user right click on the Label
Label:onCreate() Event fired when Label has just been created
Label:onDoubleClick() Event fired when the user doubleclicks on the Label
Label:onDrop() Event fired when the Label received a drag and drop content
Label:onHide() Event fired when the Label is hidden
Label:onHover() Event fired when the user moves the mouse pointer over the Label
Label:onLeave() Event fired when the mouse cursor leaves the Label
Label:onMouseDown() Event fired when the user presses a mouse button over the Label
Label:onMouseUp() Event fired when the user releases a mouse button over the Label
Label:onShow() Event fired when the Label is shown
Property Description Access Type
Label.align Align the Label relative to its parent readwrite boolean
Label.allowdrop Controls whether the Label is a drag and drop target readwrite boolean
Label.bgcolor Get/set the Label background color readwrite number
Label.cursor Get/set the image of the mouse cursor as it hovers over the Label readwrite string
Label.enabled Controls whether the label responds to mouse and other events readwrite boolean
Label.fgcolor Get/set the Label text color readwrite number
Label.font Get/set the Label font readwrite string
Label.fontsize Get/set the Label font size readwrite number
Label.fontstyle Get/set the label font style readwrite table
Label.height Get/set the Label's height readwrite number
Label.parent Get the Label's parent widget readonly
Label.text Get/set the Label text content readwrite string
Label.textalign Get/set the Label text alignment readwrite string
Label.tooltip Get/set the Label tooltip text readwrite string
Label.visible Controls whether the Label appears on screen readwrite boolean
Label.width Get/set the Label's width readwrite number
Label.x Get/set the Label's horizontal position readwrite number
Label.y Get/set the Label's vertical position readwrite number
Methods Description Return value
Label:autosize() Autosizes the Label -
Label:center() Centers the Label on the parent widget -
Label:constructor() Label object constructor
Label:hide() Hides the Label -
Label:show() Shows the Label -
Label:toback() Puts the widget to the back -
Label:tofront() Brings the widget in front -