Message box types

There are three message box types, the "information", "warning" and "critical" boxes. The box type can be chosen when typing "MessageBox." in the BrainVoyager QX script editor:

 

 

Although all buttons can be used for the information, warning and critical boxes, the icons on the message box and the default buttons for the message box will be different.

The information message box

For the "information" box, the icon is an information balloon. The default button is "Ok".

 

 

The function to create this box is:

 

function Simple_message_box_information() {

var userResponse = MessageBox.information("Start creating VMR...");

}

 

The warning message box

For the "warning" box, the icon is an exclamation mark. The default buttons are "Retry" and "Abort".

 

 

This box can be created via:

 

function Simple_message_box_warning() {

var userResponse = MessageBox.warning("No DICOM files found!");

}

The critical message box

For the "critical" message box, the icon is a cross. The default button is "Retry".

 

 

The function to create this box is:

 

function Simple_message_box_critical() {

var userResponse = MessageBox.warning("Could not save VMR!");

}