Window object
The Window widget provides a top-level container for displaying and managing widgets
| Event | Description |
|---|---|
| Window:onClick() | Event fired when the user clicks on the Window |
| Window:onClose() | Event fired when the Window is about to be closed by the user |
| Window:onContext() | Event fired when the user right click on the Window |
| Window:onCreate() | Event fired when Window has just been created |
| Window:onDrop() | Event fired when the Window received a drag and drop content |
| Window:onHide() | Event fired when the Window is hidden |
| Window:onHover() | Event fired when the user moves the mouse pointer over the Window |
| Window:onKey() | Event fired when the user press a key |
| Window:onMaximize() | Event fired when the Window is maximized |
| Window:onMinimize() | Event fired when the Window is minimized |
| Window:onMouseDown() | Event fired when the user presses a mouse button over the Window |
| Window:onMouseUp() | Event fired when the user releases a mouse button over the Window |
| Window:onMove() | Event fired when the Window has changed its position |
| Window:onResize() | Event fired when the Window is resized |
| Window:onRestore() | Event fired when the Window has restored its size and position |
| Window:onShow() | Event fired when the Window is shown |
| Window:onThemeChange() | Event fired when the Windows theme has changed |
| Window:onTrayClick() | Event fired when the user clicks on the notification icon of the Window |
| Window:onTrayContext() | Event fired when the user right-clicks on the notification icon of the Window |
| Window:onTrayDoubleClick() | Event fired when the user double-clicks on the notification icon of the Window |
| Window:onTrayHover() | Event fired when the mouse hovers the notification icon of the Window |
| Property | Description | Access | Type |
|---|---|---|---|
| Window.align | Align the Window relative to its parent | readwrite | boolean |
| Window.allowdrop | Controls whether the Window is a drag and drop target | readwrite | boolean |
| Window.bgcolor | Get/set the window background color | readwrite | number |
| Window.childs | Get a list of the window childs widgets | readonly | table |
| Window.cursor | Get/set the image of the mouse cursor as it hovers over the window | readwrite | string |
| Window.enabled | Control whether the window responds to mouse, keyboard and other events | readwrite | boolean |
| Window.font | Get/set the window font | readwrite | string |
| Window.fontsize | Get/set the window font size | readwrite | number |
| Window.fontstyle | Get/set the window font style | readwrite | table |
| Window.fullscreen | Control whether the window is fullscreen or not | readwrite | boolean |
| Window.height | Get/set the Window's height | readwrite | number |
| Window.menu | Get/set the Window's main menu bar | readwrite | |
| Window.monitor | Get the monitor in which the window is located | readonly | table |
| Window.parent | Get the parent Window | readonly | |
| Window.title | Get/set the Window title | readwrite | string |
| Window.topmost | Control whether the Window will always stay above others | readwrite | boolean |
| Window.transparency | Get/set window's transparency intensity | readwrite | boolean |
| Window.traytooltip | Get/set the window's tray icon tooltip | readwrite | string |
| Window.visible | Control whether the window appears onscreen | readwrite | boolean |
| Window.width | Get/set the Window's width | readwrite | number |
| Window.x | Get/set the Window's horizontal position | readwrite | number |
| Window.y | Get/set the Window's vertical position | readwrite | number |
| Methods | Description | Return value |
|---|---|---|
| Window:center() | Centers the Window on the parent widget | - |
| Window:constructor() | Window object constructor | |
| Window:hide() | Hide the Window | - |
| Window:loadicon() | Load the window icon | boolean |
| Window:loadtrayicon() | Load the window's tray icon | boolean |
| Window:maximize() | Maximize the Window to the entire Desktop | - |
| Window:minimize() | Minimize the Window to the taskbar | - |
| Window:notify() | Send a Windows notification | boolean |
| Window:popup() | Shows a popup menu at the current window mouse position | - |
| Window:restore() | Restore the Window size and position | - |
| Window:shortcut() | Set a new keyboard shortcut | - |
| Window:show() | Show the Window | - |
| Window:showasync() | Show the Window asynchronously | |
| Window:showmodal() | Show a Window as modal | - |
| Window:startmoving() | Initiate a drag and move operation | - |
| Window:status() | Display messages in the window status bar | - |
| Window:toback() | Puts the Window to the back | - |
| Window:tofront() | Brings the Window in front | - |