Panel¶
A panel is a widget on which controls are placed. It is usually placed within a Form. It contains minimal extra functionality over and above its parent class Window; its main purpose is to be similar in appearance and functionality to a Dialog, but with the flexibility of having any window as a parent.
Constructor¶
Panel class has a complex constructor:
object Panel:new {
number ID, string Name,
object Parent,
}
Inherited Methods¶
These methods are inherited from its super classes:
| Class Method | Defined in | Description |
|---|---|---|
| Object:getID | Object class | Returns object’s identifier. |
| Object:setID | Object class | Sets the object identifier. |
| Object:getName | Object class | Returns object’s name. |
| Object:setName | Object class | Sets the object name. |
| Widget:getParent | Widget class | Returns object’s parent. |
| Widget:setParent | Widget class | Sets the object parent. |
| Widget:getPosX | Widget class | Returns object’s position related to X. |
| Widget:setPosX | Widget class | Sets the object position related to X. |
| Widget:getPosY | Widget class | Returns object’s position related to Y. |
| Widget:setPosY | Widget class | Sets the object position related to Y. |
| Widget:getWidth | Widget class | Returns object’s width. |
| Widget:setWidth | Widget class | Sets the object width. |
| Widget:getHeight | Widget class | Returns object’s height. |
| Widget:setHeight | Widget class | Sets the object height. |
| Widget:getwxObj | Widget class | Returns a reference to the C++ object. |
| Widget:getEnabled | Widget class | Returns true if is enabled. |
| Widget:setEnabled | Widget class | Set widget enabled or disabled. |
| Widget:getVisible | Widget class | Returns the widget visibility. |
| Widget:setVisible | Widget class | Returns the widget visibility. |