1. Activity Program Name
RCA.Activities.Core.MessageBox
2. Description:
Studio Version until 2.0.2.0:
Quick Access: Toolbox > Core > Message BoxStudio Version from 2.0.3.0:
Quick Access: Toolbox > Core > Dialog > Message Box
This activity displays a message box with the specified text and buttons. The message box can automatically close after a set number of milliseconds, and it can also be set to always appear in the foreground.
3. Properties
4. Usage
The buttons displayed in the message box vary depending on the value specified in the "Buttons" property.
Example Usage:
Drag and drop the Core > Message Box activity from the toolbox into the designer panel.
Input the desired values into the Caption and Text properties, and select the appropriate buttons from the Buttons dropdown. In this example:
Caption: "Title"
Text: "Message"
Buttons: YesNoCancel
To log which button was clicked, set a variable called SelectedButton in the Output > Selected Button option. (For details on setting up variables, refer to "Creating Variables.")
Drag and drop the Core > Log Message activity from the toolbox into the designer panel.
Set the SelectedButton variable in the Input > Message property.
Click Home > Start or press F5 to run the workflow, and the message box will appear.
In this example, when you click Yes, the log in Studio's Output will record that "Yes" was clicked.
Auto-Close Feature:
Now, let's add the Display Time property. Set it to 1000 milliseconds (1 second).
Click Home > Start or press F5 to run the workflow. The message box will appear but will automatically close after 1000 milliseconds (1 second).
Since no button was clicked, the log will show "Timeout" in the output.
5. Cautions
When the "Buttons" property is set to Ok, there is a specific behavior to be aware of. Regardless of how the message box is closed, the log will always display "OK" in the following scenarios:
Clicking the "OK" button
Clicking the "X" to close the message box
If no action is taken within the time specified in the Display Time property
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article