我想找...

搜尋

分享

目錄

86HMI::setAlarmBannerPosition()

[General Functions]

描述

Set Alarm Banner Position as Top, Center, or Bottom.

語法

void setAlarmBannerPosition(ABANNER_POS pos);

參數

  • [in] pos
    Alarm banner display position. Can use ABANNER_TOP, ABANNER_CENTER, or ABANNER_BOTTOM to modify the position.

Return

範例

#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 編輯器使用手冊 for more instructions on 86HMI widgets and API usage.

返回頂端