[General Functions]
Description
Display the message window.
Displays the (title) text in the message window and, depending on the number of quotes, determines how many buttons are displayed, returning the number of the button when it is pressed. It is a blocking function in the main loop, but when it is called in a helper task, it continues directly and always returns -1.
Syntax
int showMessageBox(char* title, char* btn0 = "OK", char* btn1 = NULL, char* btn2 = NULL);
Parameters
[in] title
Title.[in] btn0
Button 0.[in] btn1
Button 1.[in] btn2
Button 2.
Return
Return the pressed button of the message box.
Example
#include "myhmi.h" void setup() { Hmi.begin(); // put your setup code here, to run once: } void loop() { Hmi.showMessageBox("My Text", "OK", "No", "Yes"); // ... }
Please see the 86HMI Editor User Manual for more instructions on 86HMI widgets and API usage.