ui module
Core framework Desktop
Property | Description | Access | Type |
---|---|---|---|
ui.rtl | Enable or disable the right to left mode | readwrite | boolean |
ui.theme | Get/set the current application theme | readwrite | string |
ui.systheme | Get the current Windows theme | readonly | string |
ui.monitors | Get a list of current active monitors | readonly | table |
ui.dpi | Get the current Windows DPI scaling factor | readonly | number |
ui.windows | Get a list of all created Window objects | readonly | table |
Function | Description | Return value |
---|---|---|
ui.msg() | Show a message dialog box | string |
ui.info() | Show an informational message dialog box | string |
ui.warn() | Show a warning message dialog box | string |
ui.confirm() | Show aconfirmation message dialog box | string |
ui.drag() | Start a drag and drop operation | boolean, number |
ui.remove() | Removes a widget from its parent | - |
ui.mousepos() | Get the current mouse position on the screen | number, number |
ui.opendialog() | Show a Windows open dialog box to select one or more files | File, ... | nil |
ui.savedialog() | Show a Windows save dialog box to select one or more files | File, ... | nil |
ui.dirdialog() | Open a Windows dialog box to select a directory | Directory | nil |
ui.selectdir() | Open a shell dialog box to choose a folder | Directory | nil |
ui.fontdialog() | Open a Windows dialog box to select a font | string, number, table | nil |
ui.colordialog() | Opens a Windows dialog box to select a color | number |
ui.run() | Run an update Task until the main Window is closed | - |
ui.update() | Update user interface and process events | - |
ui.error() | Open a Windows error message dialog box | string |
Object | Description |
---|---|
Window | Object representation of a standard Windows dialog |
Label | Object representation of a static text |
Button | Object representation of a button |
Checkbox | Object representation of a push checkbox |
Radiobutton | Object representation of a push radiobutton |
Groupbox | Object representation of a groupbox |
Panel | Object representation of a panel |
Entry | Object representation of a single line input control |
Edit | Object representation of a RichEdit control |
Combobox | Object representation of a multichoice Combobox |
ComboItem | Object representation of an item in a Combobox |
List | Object representation of a List of text elements |
ListItem | Object representation of an item in a List |
Tab | Object representation of a notebook |
TabItem | Object representation of an item in a Tab |
Progressbar | Object representation of a Progression bar |
Menu | Object representation of a menu |
MenuItem | Object representation of a menu item |
Tree | Object representation of a hierarchical view of text elements |
Treeitem | Object representation of a Tree item |
Calendar | Object representation of a Calendar control |
Picture | Object representation of a static image |