system.gui.warningBox
Description
Displays a message to the user in a warning style pop-up dialog.
Syntax
system.gui. warningBox( message [, title] )
-
Parameters
String message - The message to display in the warning box.
String title - The title for the warning box. [optional]
-
Returns
Nothing
-
Scope
Client
Code Examples
Code Snippet
#This code show a yellow popup box similar to the system.gui.messageBox function.# Start the motor, or, warn the user if in wrong moderunMode = event.source.parent.getPropertyValue('RunMode')if runMode == 1: Cannot start the motor in mode #1 system.gui.warningBox("Cannot start the motor, current mode is <B>VIEW MODE</B>")else: system.db.runUpdateQuery("UPDATE MotorControl SET MotorRun=1")