Label object

Event Description
Label.onShow() Event fired when the Label is shown
Label.onHide() Event fired when the Label is hidden
Label.onClick() Event fired when the user clicks on the Label
Label.onContext() Event fired when the user right click on the Label
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.onCreate() Event fired when Label has just been created
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
Property Description Access Type
Label.text Get/set the Label text content readwrite string
Label.textalign Get/set the Label text alignment readwrite string
Label.x Get/set the Label's horizontal position readwrite number
Label.y Get/set the Label's vertical position readwrite number
Label.width Get/set the Label's width readwrite number
Label.height Get/set the Label's height readwrite number
Label.cursor Get/set the image of the mouse cursor as it hovers over the Label readwrite string
Label.align Align the Label relative to its parent readwrite boolean
Label.enabled Controls whether the label responds to mouse and other events readwrite boolean
Label.visible Controls whether the Label appears on screen readwrite boolean
Label.parent Get the Label's parent widget readonly Window | Groupbox
TabItem | Panel
Label.font Get/set the Label font readwrite string
Label.fontstyle Get/set the label font style readwrite table
Label.fontsize Get/set the Label font size readwrite number
Label.bgcolor Get/set the Label background color readwrite number
Label.fgcolor Get/set the Label text color readwrite number
Label.tooltip Get/set the Label tooltip text readwrite string
Method Description Return value
Label.constructor() Label object constructor Label
Label.center() Centers the Label on the parent widget -
Label.autosize() Autosizes the Label -
Label.show() Shows the Label -
Label.hide() Hides the Label -
Label.tofront() Brings the widget in front -
Label.toback() Puts the widget to the back -