ui module

Core framework Desktop

The ui module provides tools for creating graphical user interfaces

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