我想找...

搜尋

分享

目錄

86HMI::setMessageBoxWidth()

[General Functions]

描述

Set MessageBox default width.

語法

void setMessageBoxWidth(MBOX_WIDTH width);

參數

  • [in] width
    MessageBox width, MBOX_NORMAL, MBOX_LARGER, or MBOX_LARGEST.

Return

範例

#include "myhmi.h"

void setup() {
  Hmi.begin();
  // put your setup code here, to run once:
  Hmi.setMessageBoxWidth(MBOX_LARGER);
}

void loop() {
  Hmi.showMessageBox("My Text", "OK", "No", "Yes");
  // ...
}

Please see the 86HMI 編輯器使用手冊 for more instructions on 86HMI widgets and API usage.

返回頂端