system.gui
GUI Functionsβ
The following functions allow you to control windows and create popup interfaces.
ποΈ chooseColor
Prompts the user to pick a color using the default color-chooser dialog box.
ποΈ closeDesktop
Allows you to close any of the open desktops associated with the current client.
ποΈ color
Creates a new color object, either by parsing a string or by having the RGB[A] channels specified explicitly.
ποΈ confirm
Displays a confirmation dialog box to the user with Yes and No options, and a custom message.
ποΈ convertPointToScreen
Converts a pair of coordinates that are relative to the upper-left corner of a component to be relative to the upper-left corner of the entire screen.
ποΈ createPopupMenu
Creates a new popup menu, which can then be shown over a component on a mouse event.
ποΈ desktop
Allows for invoking system.gui functions on a specific desktop.
ποΈ errorBox
Displays an error-style message box to the user.
ποΈ findWindow
Finds and returns a list of windows with the given path.
ποΈ getCurrentDesktop
Returns the handle of the desktop this function was called from.
ποΈ getScreenIndex
Returns an integer value representing the current screen index based on the screen from which this function was called.
ποΈ getDesktopHandles
Gets a list of all secondary handles of the open desktops associated with the current client.
ποΈ getOpenedWindowNames
Finds all of the currently open windows and returns a tuple of their paths.
ποΈ getOpenedWindows
Finds all of the currently open windows and returns a tuple of references to them.
ποΈ getParentWindow
Finds the parent (enclosing) window for the component that fired an event and returns a reference to it.
ποΈ getQuality
Returns the data quality for the property of the given component as an integer.
ποΈ getScreens
Get a list of all the monitors on the computer this client is open on.
ποΈ getSibling
Given a component event object, looks up a sibling component.
ποΈ getWindow
Finds a reference to an open window with the given name.
ποΈ getWindowNames
Returns a list of the paths of all windows in the current project, sorted alphabetically.
ποΈ inputBox
Opens up a popup input dialog box.
ποΈ isTouchscreenModeEnabled
Checks whether or not the running Client's Touch Screen mode is currently enabled.
ποΈ messageBox
Displays an informational-style message popup box to the user.
ποΈ openDesktop
Creates an additional Desktop in a new frame.
ποΈ openDiagnostics
Opens the client runtime diagnostics window, which provides information regarding performance, logging, active threads, connection status, and the console.
ποΈ passwordBox
Pops up a special input box that uses a password field, so the text isn't echoed back in clear-text to the user.
ποΈ setScreenIndex
Moves an open client to a specific monitor.
ποΈ setTouchscreenModeEnabled
Alters a running Client's Touch Screen mode on the fly.
ποΈ showNumericKeypad
Displays a modal on-screen numeric keypad, allowing for arbitrary numeric entry using the mouse, or a finger on a touchscreen monitor.
ποΈ showTouchscreenKeyboard
Displays a modal on-screen keyboard, allowing for arbitrary text entry using the mouse, or a finger on a touchscreen monitor.
ποΈ transform
Sets a component's position and size at runtime.
ποΈ warningBox
Displays a message to the user in a warning style popup dialog.
Functions by Scopeβ
- chooseColor
- closeDesktop
- color
- confirm
- convertPointToScreen
- createPopupMenu
- desktop
- errorBox
- findWindow
- getCurrentDesktop
- getDesktopHandles
- getOpenedWindowNames
- getOpenedWindows
- getParentWindow
- getQuality
- getScreenIndex
- getScreens
- getSibling
- getWindow
- getWindowNames
- inputBox
- isTouchscreenModeEnabled
- messageBox
- openDesktop
- openDiagnostics
- passwordBox
- setScreenIndex
- setTouchscreenModeEnabled
- showNumericKeypad
- showTouchscreenKeyboard
- transform
- warningBox
Constantsβ
- system.gui.ACCL_NONE = 0
- system.gui.ACCL_CONSTANT = 1
- system.gui.ACCL_FAST_TO_SLOW = 2
- system.gui.ACCL_SLOW_TO_FAST = 3
- system.gui.ACCL_EASE = 4
- system.gui.COORD_SCREEN = 0
- system.gui.COORD_DESIGNER = 1