Skip to main content
Version: 18

MSG_BOX

Pops up a message box.

Description

Pops up a small message box window on top of the Consteel main window with the given message. Script execution will not continue until a the message box is closed with the "OK" or close button [X].

The message can display values of variables in the code, and also accepst html tags for more editing options.

Syntax

MSG_BOX [Message title] [Message description]
Icon [Icon type]

Additional command lines

Code lines directly after the MSG_BOX command.

Available additional command lines:

Line starting keywordInclusionDescription
IconOptionalAdds an icon to the message

Icon:

An icon can be added in front of the message title with this additional line immediately after the MSGBOX command. If the "Icon ..." line is added then the _Icon type parameter have to be given.

Command parameters

Command parameterAssignmentValue formatInput options
Message titleRequiredStringLocal, variable
Message descriptionRequiredStringLocal, variable
Icon typeOptionalPredefined stringsLocal, variable

Message title:

Title of the message.

Message description:

Body of the message.

Icon type:

Specifies the type of the optional icon in front of the message title.

Available icon types:
Icon typeIcon
Error
Warning
Information
None(no icon will be displayed)

Sample code

Simplest form: (minimal parameters)

MSG_BOX "Message title" "Message description"

Form showing all capabilities:

Variable value and html tags (eg. <br> -> "line break" ) in text.

$variable=123456

MSG_BOX "Warning $variable" "Message description $variable <br> ● Bullet point 1 <br> ● Bullet point 2"
Icon Warning