Panel object

The Panel widget provides a container for organizing child controls

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