[General Functions]
The following Event Functions are written between BEGIN_HMI_EVENT_PROC 以及 END_HMI_EVENT_PROC.
描述
Determine whether the page has been leaved.
語法
bool pageLeave(lv_obj_t* id);
bool pageLeave(char* name);
參數
[in] id
Object ID.[in] name
Object Name.
Return
Bool. Determine whether the page has been leaved.
範例
#include "myhmi.h"
void setup() {
Hmi.begin();
// put your setup code here, to run once:
}
void loop() {
BEGIN_HMI_EVENT_PROC
{
if (Hmi.pageLeave(p1))
{
// do someting when page leave;
}
}
END_HMI_EVENT_PROC
}Please see the 86HMI Editor使用手冊 for more instructions on 86HMI widgets and API usage.