[General Functions]
Description
Set Alarm Banner Position as Top, Center, or Bottom.
Syntax
void setAlarmBannerPosition(ABANNER_POS pos);
Parameters
[in] pos
Alarm banner display position. Can use ABANNER_TOP, ABANNER_CENTER, or ABANNER_BOTTOM to modify the position.
Return
None.
Example
#include "myhmi.h"
void setup() {
Hmi.begin();
// put your setup code here, to run once:
Hmi.setAlarmBannerPosition(ABANNER_CENTER);
}
void loop() {
if (Hmi.getToggleButtonState(p2tb1)) {
Hmi.showAlarmBanner("This is a test.");
} else {
Hmi.deleteAlarmBanner();
}
// ...
}Please see the 86HMI Editor User Manual for more instructions on 86HMI widgets and API usage.