M.gui

The M.gui functions control the action-button window and show message boxes on the MASSO screen.

Applies to
MASSO G3 and MASSO G3 Touch
Available from
Software 5.13, API 1.0.0
Write scripts in
FunctionDoes
action_window_title(s)Sets the action window title
action_window_show()Shows the action window
action_window_hide()Hides the action window
action_button_text(i, s)Sets a button's text
action_button_text_color(i, hex)Sets a button's text colour
action_button_color(i, hex)Sets a button's background colour
action_button_show(i)Shows a button
action_button_hide(i)Hides a button
show_message(t, s)Shows a message box

Action window

M.gui.action_window_title(s)

Sets the title of the action-button window.

Inputs (string): window title
Returnsnothing
M.gui.action_window_title("Job Controls")
M.gui.action_window_show()

Shows the action-button window.

Inputnone
Returnsnothing
M.gui.action_window_hide()

Hides the action-button window.

Inputnone
Returnsnothing

Action buttons

Each button is identified by its index i (integer). Colours are hex values such as 0xFFFFFF.

M.gui.action_button_text(i, s)

Sets the text of an action button.

Inputi (integer): button index; s (string): button text
Returnsnothing
M.gui.action_button_text(1, "Probe Z")
M.gui.action_button_text_color(i, hex)

Sets the text colour of an action button.

Inputi (integer); hex (colour), e.g. 0xFFFFFF
Returnsnothing
M.gui.action_button_color(i, hex)

Sets the background colour of an action button.

Inputi (integer); hex (colour), e.g. 0x0066CC
Returnsnothing

Default MASSO button colours: normal 0x240055, pressed 0x002455.

M.gui.action_button_show(i)

Shows the specified action button.

Inputi (integer)
Returnsnothing
M.gui.action_button_hide(i)

Hides the specified action button.

Inputi (integer)
Returnsnothing

Messages

M.gui.show_message(t, s)

Shows a message box with a title and body text.

Inputt (string): title; s (string): text
Returnsnothing
M.gui.show_message("Tool Change", "Insert T07 and press Cycle Start.")