UI创建判定防止重复创建
This commit is contained in:
parent
b8a373de22
commit
4f7a217345
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
#用于gitlab-ci.yml编译使用
|
||||
|
||||
#make app_clean
|
||||
make app_clean
|
||||
|
||||
echo "Start compile."
|
||||
export ROOT_PATH=$PWD
|
||||
|
@ -9,7 +9,7 @@ export ROOT_PATH=$PWD
|
|||
cd rtos
|
||||
source build/envsetup.sh
|
||||
lunch rtos cfg_565_HUNTING_EVB_LINUX_4G_S550 gcc-6.5-newlib-2.4-2019.11-arm-ca9-eabihf
|
||||
#make clean
|
||||
make clean
|
||||
bear make all > /dev/null
|
||||
cp output/application.bin ../
|
||||
cp output/rtos-main.bin ../
|
||||
|
@ -18,7 +18,7 @@ cp output/rtos-main.bin ../
|
|||
cd $ROOT_PATH
|
||||
source build/envsetup.sh
|
||||
lunch Linux cfg_565_HUNTING_EVB_LINUX_4G_S550 arm-ca9-linux-uclibcgnueabihf-8.4.01
|
||||
#make clean
|
||||
make clean
|
||||
bear make all > /dev/null
|
||||
|
||||
cd $ROOT_PATH
|
||||
|
|
|
@ -421,7 +421,11 @@ void show_Sensitivity_page(lv_obj_t* obj)
|
|||
STYLE_COLOR_PROP(0x23, 0x0f, 0x0f, 0x10) ; lv_style_set_bg_color(&SensitivityContainerStyle, LV_STATE_DEFAULT, color);
|
||||
STYLE_COLOR_PROP(0x23, 0x0f, 0x0f, 0x10) ; lv_style_set_bg_grad_color(&SensitivityContainerStyle, LV_STATE_DEFAULT, color);
|
||||
STYLE_COLOR_PROP(0x22, 0x95, 0xc9, 0x3d) ; lv_style_set_border_color(&SensitivityContainerStyle, LV_STATE_DEFAULT, color);
|
||||
if (NULL == SensitivityContainer)
|
||||
{
|
||||
SensitivityContainer = lv_cont_create(obj, NULL);
|
||||
}
|
||||
|
||||
lv_obj_set_hidden(SensitivityContainer, false);
|
||||
lv_obj_set_click(SensitivityContainer, true);
|
||||
lv_obj_set_drag(SensitivityContainer, false);
|
||||
|
@ -429,8 +433,11 @@ void show_Sensitivity_page(lv_obj_t* obj)
|
|||
lv_obj_set_size(SensitivityContainer, 30, 30);
|
||||
lv_obj_add_style(SensitivityContainer, 0, &SensitivityContainerStyle);
|
||||
|
||||
|
||||
if (NULL == SensitivityTitleLabel)
|
||||
{
|
||||
SensitivityTitleLabel = lv_label_create(obj, NULL);
|
||||
}
|
||||
|
||||
lv_obj_set_pos(SensitivityTitleLabel, 10, 50);
|
||||
lv_obj_set_size(SensitivityTitleLabel, 200, 24);
|
||||
lv_obj_add_style(SensitivityTitleLabel, 0, &gStyleLabel0);
|
||||
|
@ -438,7 +445,10 @@ void show_Sensitivity_page(lv_obj_t* obj)
|
|||
lv_label_set_text(SensitivityTitleLabel, "Sensitivity");
|
||||
|
||||
sprintf(result, "%d", gPirSensitivity);
|
||||
if (NULL == SensitivityValueLabel)
|
||||
{
|
||||
SensitivityValueLabel = lv_label_create(obj, NULL);
|
||||
}
|
||||
lv_obj_set_pos(SensitivityValueLabel, 288, 49);
|
||||
lv_obj_set_size(SensitivityValueLabel, 30, 30);
|
||||
lv_obj_add_style(SensitivityValueLabel, 0, &gStyleLabel0);
|
||||
|
@ -561,7 +571,10 @@ void show_Delay_page(lv_obj_t* obj)
|
|||
snprintf(DelayMMBuf, 3, "%02d", puiPara->PirDelayTime.Min);
|
||||
snprintf(DelaySSBuf, 3, "%02d", puiPara->PirDelayTime.Sec);
|
||||
|
||||
if (NULL == DelayMatrixObj)
|
||||
{
|
||||
DelayMatrixObj = lv_btnmatrix_create(obj, NULL);
|
||||
}
|
||||
lv_obj_set_hidden(DelayMatrixObj, false);
|
||||
lv_obj_set_click(DelayMatrixObj, true);
|
||||
lv_obj_set_drag(DelayMatrixObj, false);
|
||||
|
@ -578,7 +591,11 @@ void show_Delay_page(lv_obj_t* obj)
|
|||
lv_obj_add_style(DelayMatrixObj, 0, &gMatrixStylebg);
|
||||
lv_obj_add_style(DelayMatrixObj, 1, &gMatrixStylebtn);
|
||||
|
||||
if (NULL == DelayImage)
|
||||
{
|
||||
DelayImage = lv_img_create(obj, NULL);
|
||||
}
|
||||
|
||||
lv_obj_set_hidden(DelayImage, false);
|
||||
lv_obj_set_click(DelayImage, false);
|
||||
lv_obj_set_drag(DelayImage, false);
|
||||
|
@ -586,7 +603,10 @@ void show_Delay_page(lv_obj_t* obj)
|
|||
lv_obj_set_size(DelayImage, 32, 88);
|
||||
lv_img_set_src(DelayImage, &sf_pwd_down_up);
|
||||
|
||||
if (NULL == DelayLabel)
|
||||
{
|
||||
DelayLabel = lv_label_create(obj, NULL);
|
||||
}
|
||||
lv_label_set_text(DelayLabel, "HH : MM : SS");
|
||||
lv_label_set_align(DelayLabel, LV_LABEL_ALIGN_CENTER);
|
||||
lv_obj_set_pos(DelayLabel, 100, 155);
|
||||
|
@ -829,7 +849,10 @@ void show_Operating_Time_page(lv_obj_t* obj)
|
|||
snprintf(OperatingTimeHHBuf2, 3, "%02d", puiPara->WorkTime[0].StopTime.Hour);
|
||||
snprintf(OperatingTimeMMBuf2, 3, "%02d", puiPara->WorkTime[0].StopTime.Min);
|
||||
|
||||
if (NULL == OperatingTimeMatrixObj)
|
||||
{
|
||||
OperatingTimeMatrixObj = lv_btnmatrix_create(obj, NULL);
|
||||
}
|
||||
lv_obj_set_hidden(OperatingTimeMatrixObj, false);
|
||||
lv_obj_set_click(OperatingTimeMatrixObj, true);
|
||||
lv_obj_set_drag(OperatingTimeMatrixObj, false);
|
||||
|
@ -847,7 +870,10 @@ void show_Operating_Time_page(lv_obj_t* obj)
|
|||
lv_obj_add_style(OperatingTimeMatrixObj, 0, &gMatrixStylebg);
|
||||
lv_obj_add_style(OperatingTimeMatrixObj, 1, &gMatrixStylebtn);
|
||||
|
||||
if (NULL == OperatingTimeImage)
|
||||
{
|
||||
OperatingTimeImage = lv_img_create(obj, NULL);
|
||||
}
|
||||
lv_obj_set_hidden(OperatingTimeImage, false);
|
||||
lv_obj_set_click(OperatingTimeImage, false);
|
||||
lv_obj_set_drag(OperatingTimeImage, false);
|
||||
|
@ -855,7 +881,10 @@ void show_Operating_Time_page(lv_obj_t* obj)
|
|||
lv_obj_set_size(OperatingTimeImage, 32, 88);
|
||||
lv_img_set_src(OperatingTimeImage, &sf_pwd_down_up);
|
||||
|
||||
if (NULL == OperatingTimeLabel)
|
||||
{
|
||||
OperatingTimeLabel = lv_label_create(obj, NULL);
|
||||
}
|
||||
lv_label_set_text(OperatingTimeLabel, "HH : MM HH : MM");
|
||||
lv_label_set_align(OperatingTimeLabel, LV_LABEL_ALIGN_CENTER);
|
||||
lv_obj_set_pos(OperatingTimeLabel, 76, 155);
|
||||
|
@ -1189,8 +1218,10 @@ void show_DateTime_page(lv_obj_t* obj, int defaultTime)
|
|||
snprintf(DateTimeMIBuf, 3, "%02d", gDateTime.Min);
|
||||
snprintf(DateTimeSSBuf, 3, "%02d", gDateTime.Sec);
|
||||
|
||||
|
||||
if (NULL == DateTimeMatrixObj)
|
||||
{
|
||||
DateTimeMatrixObj = lv_btnmatrix_create(obj, NULL);
|
||||
}
|
||||
lv_obj_set_hidden(DateTimeMatrixObj, false);
|
||||
lv_obj_set_click(DateTimeMatrixObj, true);
|
||||
lv_obj_set_drag(DateTimeMatrixObj, false);
|
||||
|
@ -1211,7 +1242,10 @@ void show_DateTime_page(lv_obj_t* obj, int defaultTime)
|
|||
lv_obj_add_style(DateTimeMatrixObj, 0, &gMatrixStylebg);
|
||||
lv_obj_add_style(DateTimeMatrixObj, 1, &gMatrixStylebtn);
|
||||
|
||||
if (NULL == DateTimeImage)
|
||||
{
|
||||
DateTimeImage = lv_img_create(obj, NULL);
|
||||
}
|
||||
lv_obj_set_hidden(DateTimeImage, false);
|
||||
lv_obj_set_click(DateTimeImage, false);
|
||||
lv_obj_set_drag(DateTimeImage, false);
|
||||
|
@ -1223,13 +1257,19 @@ void show_DateTime_page(lv_obj_t* obj, int defaultTime)
|
|||
lv_style_init(&LabelStyle);
|
||||
lv_style_copy(&LabelStyle, &gStyleLabel0);
|
||||
lv_style_set_text_font(&LabelStyle,LV_STATE_DEFAULT,&sf_ui_text_bold_20_1bpp);
|
||||
if (NULL == DateTimeLabel1)
|
||||
{
|
||||
DateTimeLabel1 = lv_label_create(obj, NULL);
|
||||
}
|
||||
lv_label_set_text(DateTimeLabel1, "Date Time");
|
||||
lv_obj_set_pos(DateTimeLabel1, 56, 60);
|
||||
lv_obj_set_size(DateTimeLabel1, 200, 24);
|
||||
lv_obj_add_style(DateTimeLabel1, 0, &LabelStyle);
|
||||
|
||||
if (NULL == DateTimeLabel2)
|
||||
{
|
||||
DateTimeLabel2 = lv_label_create(obj, NULL);
|
||||
}
|
||||
lv_label_set_text(DateTimeLabel2, "MM:DD:YYYY MM:DD:SS");
|
||||
lv_label_set_align(DateTimeLabel2, LV_LABEL_ALIGN_CENTER);
|
||||
lv_obj_set_pos(DateTimeLabel2, 28, 155);
|
||||
|
|
|
@ -824,7 +824,10 @@ void show_qr_picture_page(lv_obj_t* obj)
|
|||
// const char *data = "https://github.com/topics/littlevgl";
|
||||
|
||||
//text qr page
|
||||
if (NULL == label)
|
||||
{
|
||||
label = lv_label_create(obj, NULL);
|
||||
}
|
||||
lv_label_set_long_mode(label, LV_LABEL_LONG_BREAK);
|
||||
lv_label_set_text(label, "");
|
||||
lv_obj_set_pos(label, 180, 70);
|
||||
|
@ -839,9 +842,16 @@ void show_qr_picture_page(lv_obj_t* obj)
|
|||
lv_obj_add_style(label, 0, &labelStyle);
|
||||
|
||||
//text qr msgbox
|
||||
if (NULL == qr_info_msgbox)
|
||||
{
|
||||
qr_info_msgbox = lv_btn_create(obj, button_msg_bg_scr_uiflowwrnmsg);
|
||||
}
|
||||
|
||||
lv_obj_set_hidden(qr_info_msgbox, false);
|
||||
if (NULL == labelInit)
|
||||
{
|
||||
labelInit = lv_label_create(qr_info_msgbox, label_msg_scr_uiflowwrnmsg);
|
||||
}
|
||||
lv_obj_add_style(labelInit, 0, &gStyleLabel0);
|
||||
//lv_obj_add_style(labelInit, 0, &gMatrixStylebtn);
|
||||
//lv_label_set_align(labelInit, LV_LABEL_ALIGN_CENTER);
|
||||
|
@ -866,7 +876,11 @@ void show_qr_picture_page(lv_obj_t* obj)
|
|||
|
||||
|
||||
//icon
|
||||
if (NULL == QRImage)
|
||||
{
|
||||
QRImage = lv_img_create(obj, NULL);
|
||||
}
|
||||
|
||||
lv_obj_set_hidden(QRImage, true);
|
||||
lv_obj_set_click(QRImage, false);
|
||||
lv_obj_set_drag(QRImage, false);
|
||||
|
@ -1027,7 +1041,11 @@ void show_Password_page(lv_obj_t* obj)
|
|||
snprintf(PasswordBuf5, 2, "%c", puiPara->PwdStr[4]);
|
||||
snprintf(PasswordBuf6, 2, "%c", puiPara->PwdStr[5]);
|
||||
|
||||
if (NULL == PasswordMatrixObj)
|
||||
{
|
||||
PasswordMatrixObj = lv_btnmatrix_create(obj, NULL);
|
||||
}
|
||||
|
||||
lv_obj_set_hidden(PasswordMatrixObj, false);
|
||||
lv_obj_set_click(PasswordMatrixObj, true);
|
||||
lv_obj_set_drag(PasswordMatrixObj, false);
|
||||
|
@ -1041,7 +1059,11 @@ void show_Password_page(lv_obj_t* obj)
|
|||
lv_obj_add_style(PasswordMatrixObj, 0, &gMatrixStylebg);
|
||||
lv_obj_add_style(PasswordMatrixObj, 1, &gMatrixStylebtn);
|
||||
|
||||
if (NULL == PasswordImage)
|
||||
{
|
||||
PasswordImage = lv_img_create(obj, NULL);
|
||||
}
|
||||
|
||||
lv_obj_set_hidden(PasswordImage, false);
|
||||
lv_obj_set_click(PasswordImage, false);
|
||||
lv_obj_set_drag(PasswordImage, false);
|
||||
|
@ -1279,7 +1301,10 @@ void show_Camera_Info_page(lv_obj_t* obj)
|
|||
|
||||
init_Matrix_style();
|
||||
|
||||
if (NULL == btnm)
|
||||
{
|
||||
btnm = lv_btnmatrix_create(obj, NULL);
|
||||
}
|
||||
lv_btnmatrix_set_map(btnm, map);
|
||||
lv_obj_add_style(btnm, 0, &gMatrixStylebg);
|
||||
lv_obj_add_style(btnm, 1, &gMatrixStylebtn);
|
||||
|
@ -1288,7 +1313,10 @@ void show_Camera_Info_page(lv_obj_t* obj)
|
|||
lv_btnmatrix_set_btn_ctrl_all(btnm, LV_BTNMATRIX_CTRL_CHECKABLE);
|
||||
lv_btnmatrix_set_focused_btn(btnm, 0);
|
||||
|
||||
if (NULL == CameraInfoImage)
|
||||
{
|
||||
CameraInfoImage = lv_img_create(obj, NULL);
|
||||
}
|
||||
lv_obj_set_hidden(CameraInfoImage, false);
|
||||
lv_obj_set_click(CameraInfoImage, false);
|
||||
lv_obj_set_drag(CameraInfoImage, false);
|
||||
|
@ -1300,7 +1328,11 @@ void show_Camera_Info_page(lv_obj_t* obj)
|
|||
lv_style_init(&LabelStyle);
|
||||
lv_style_copy(&LabelStyle, &gStyleLabel0);
|
||||
lv_style_set_text_line_space(&LabelStyle, LV_STATE_DEFAULT, -2);
|
||||
|
||||
if (NULL == CameraInfolabel)
|
||||
{
|
||||
CameraInfolabel = lv_label_create(obj, NULL);
|
||||
}
|
||||
lv_label_set_text(CameraInfolabel, "");
|
||||
lv_obj_set_pos(CameraInfolabel, 10, 45);
|
||||
lv_obj_set_width(CameraInfolabel, 300);
|
||||
|
@ -1485,7 +1517,10 @@ void show_Camera_Name_page(lv_obj_t* obj)
|
|||
snprintf(CameraNameBuf3, 2, "%c", puiPara->CamNameStr[2]);
|
||||
snprintf(CameraNameBuf4, 2, "%c", puiPara->CamNameStr[3]);
|
||||
|
||||
if (NULL == CameraNameMatrixObj)
|
||||
{
|
||||
CameraNameMatrixObj = lv_btnmatrix_create(obj, NULL);
|
||||
}
|
||||
lv_obj_set_hidden(CameraNameMatrixObj, false);
|
||||
lv_obj_set_click(CameraNameMatrixObj, true);
|
||||
lv_obj_set_drag(CameraNameMatrixObj, false);
|
||||
|
@ -1499,7 +1534,10 @@ void show_Camera_Name_page(lv_obj_t* obj)
|
|||
lv_obj_add_style(CameraNameMatrixObj, 0, &gMatrixStylebg);
|
||||
lv_obj_add_style(CameraNameMatrixObj, 1, &gMatrixStylebtn);
|
||||
|
||||
if (NULL == CameraNameImage)
|
||||
{
|
||||
CameraNameImage = lv_img_create(obj, NULL);
|
||||
}
|
||||
lv_obj_set_hidden(CameraNameImage, false);
|
||||
lv_obj_set_click(CameraNameImage, false);
|
||||
lv_obj_set_drag(CameraNameImage, false);
|
||||
|
|
|
@ -329,22 +329,31 @@ void show_MaxNum_page(lv_obj_t* obj)
|
|||
{
|
||||
puiPara->SendMaxNum = 1;
|
||||
}
|
||||
|
||||
if (NULL == MaxNumTitleLabel)
|
||||
{
|
||||
MaxNumTitleLabel = lv_label_create(obj, NULL);
|
||||
lv_obj_set_pos(MaxNumTitleLabel, 133, 159);
|
||||
lv_obj_set_size(MaxNumTitleLabel, 54, 24);
|
||||
lv_obj_add_style(MaxNumTitleLabel, 0, &gMatrixStylebtn);
|
||||
lv_obj_set_state(MaxNumTitleLabel, LV_STATE_DEFAULT);
|
||||
lv_label_set_text(MaxNumTitleLabel, "01-99");
|
||||
}
|
||||
|
||||
|
||||
char result[3];
|
||||
sprintf(result, "%02d", puiPara->SendMaxNum);
|
||||
|
||||
if (NULL == MaxNumValueLabel)
|
||||
{
|
||||
MaxNumValueLabel = lv_label_create(obj, NULL);
|
||||
lv_obj_set_pos(MaxNumValueLabel, 145, 93);
|
||||
lv_obj_set_size(MaxNumValueLabel, 32, 24);
|
||||
lv_obj_add_style(MaxNumValueLabel, 0, &gMatrixStylebtn);
|
||||
lv_obj_set_state(MaxNumValueLabel, LV_STATE_FOCUSED);
|
||||
lv_label_set_text(MaxNumValueLabel, result);
|
||||
}
|
||||
if (NULL == SelectedImage)
|
||||
{
|
||||
SelectedImage = lv_img_create(obj, NULL);
|
||||
lv_obj_set_hidden(SelectedImage, false);
|
||||
lv_obj_set_click(SelectedImage, false);
|
||||
|
@ -354,6 +363,8 @@ void show_MaxNum_page(lv_obj_t* obj)
|
|||
lv_obj_set_pos(SelectedImage, 144, 80);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void hidde_MaxNum_page(void)
|
||||
{
|
||||
if(MaxNumTitleLabel)
|
||||
|
@ -553,8 +564,11 @@ void show_send_time_page(lv_obj_t* obj, const int sendType)
|
|||
snprintf(SendTimeMMBuf2, TIME_BUF_LENGTH, "%02d", gSendTime[settingIndex + 1].Min);
|
||||
// int i = 0;
|
||||
if(ONCE_DAY != gSendType)
|
||||
{
|
||||
if (NULL == SendTimeMatrixObj_0)
|
||||
{
|
||||
SendTimeMatrixObj_0 = lv_btnmatrix_create(obj, NULL);
|
||||
}
|
||||
lv_obj_set_hidden(SendTimeMatrixObj_0, false);
|
||||
lv_obj_set_click(SendTimeMatrixObj_0, true);
|
||||
lv_obj_set_drag(SendTimeMatrixObj_0, false);
|
||||
|
@ -568,6 +582,7 @@ void show_send_time_page(lv_obj_t* obj, const int sendType)
|
|||
lv_obj_add_style(SendTimeMatrixObj_0, 0, &gMatrixStylebg);
|
||||
lv_obj_add_style(SendTimeMatrixObj_0, 1, &gMatrixStylebtn);
|
||||
lv_btnmatrix_set_btn_width(SendTimeMatrixObj_0, 3, 2);
|
||||
|
||||
// for (i = 0; i < 8; i++)
|
||||
// {
|
||||
// lv_btnmatrix_set_btn_width(SendTimeMatrixObj_0, i, 1);
|
||||
|
@ -576,8 +591,12 @@ void show_send_time_page(lv_obj_t* obj, const int sendType)
|
|||
lv_obj_set_hidden(container_send_time_1_scr_uiflowmenucommonoption, false);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (NULL == SendTimeMatrixObj_1)
|
||||
{
|
||||
SendTimeMatrixObj_1 = lv_btnmatrix_create(obj, NULL);
|
||||
}
|
||||
|
||||
lv_obj_set_hidden(SendTimeMatrixObj_1, false);
|
||||
lv_obj_set_click(SendTimeMatrixObj_1, true);
|
||||
lv_obj_set_drag(SendTimeMatrixObj_1, false);
|
||||
|
@ -597,7 +616,11 @@ void show_send_time_page(lv_obj_t* obj, const int sendType)
|
|||
|
||||
lv_obj_set_hidden(container_send_time_0_scr_uiflowmenucommonoption, false);
|
||||
}
|
||||
if (NULL == SelectedImage)
|
||||
{
|
||||
SelectedImage = lv_img_create(obj, NULL);
|
||||
}
|
||||
|
||||
lv_obj_set_hidden(SelectedImage, false);
|
||||
lv_obj_set_click(SelectedImage, false);
|
||||
lv_obj_set_drag(SelectedImage, false);
|
||||
|
@ -613,8 +636,11 @@ void show_send_time_page(lv_obj_t* obj, const int sendType)
|
|||
}
|
||||
|
||||
if(FOUR_TIME_DAY == gSendType)
|
||||
{
|
||||
if (NULL == btnm)
|
||||
{
|
||||
btnm = lv_btnmatrix_create(lv_scr_act(), NULL);
|
||||
}
|
||||
lv_btnmatrix_set_map(btnm, map);
|
||||
lv_obj_add_style(btnm, 0, &gMatrixStylebg);
|
||||
lv_obj_add_style(btnm, 1, &gMatrixStylebtn);
|
||||
|
@ -623,7 +649,10 @@ void show_send_time_page(lv_obj_t* obj, const int sendType)
|
|||
lv_btnmatrix_set_btn_ctrl_all(btnm, LV_BTNMATRIX_CTRL_CHECKABLE);
|
||||
lv_btnmatrix_set_focused_btn(btnm, 0);
|
||||
|
||||
if (NULL == SendTypeImage)
|
||||
{
|
||||
SendTypeImage = lv_img_create(lv_scr_act(), NULL);
|
||||
}
|
||||
lv_obj_set_hidden(SendTypeImage, false);
|
||||
lv_obj_set_click(SendTypeImage, false);
|
||||
lv_obj_set_drag(SendTypeImage, false);
|
||||
|
|
|
@ -162,7 +162,10 @@ static void init_Matrix_style(void)
|
|||
static void UIFlowPassword_ScrOpen(lv_obj_t* obj)
|
||||
{
|
||||
init_Matrix_style();
|
||||
if (NULL == SendTimeMatrixObj_0)
|
||||
{
|
||||
SendTimeMatrixObj_0 = lv_btnmatrix_create(obj, NULL);
|
||||
}
|
||||
lv_obj_set_hidden(SendTimeMatrixObj_0, false);
|
||||
lv_obj_set_click(SendTimeMatrixObj_0, true);
|
||||
lv_obj_set_drag(SendTimeMatrixObj_0, false);
|
||||
|
@ -175,7 +178,10 @@ static void UIFlowPassword_ScrOpen(lv_obj_t* obj)
|
|||
lv_btnmatrix_set_one_check(SendTimeMatrixObj_0, false);
|
||||
lv_obj_add_style(SendTimeMatrixObj_0, 0, &gMatrixStylebg);
|
||||
lv_obj_add_style(SendTimeMatrixObj_0, 1, &gMatrixStylebtn);
|
||||
if (NULL == SelectedImage)
|
||||
{
|
||||
SelectedImage = lv_img_create(obj, NULL);
|
||||
}
|
||||
lv_obj_set_hidden(SelectedImage, false);
|
||||
lv_obj_set_click(SelectedImage, false);
|
||||
lv_obj_set_drag(SelectedImage, false);
|
||||
|
|
|
@ -1339,7 +1339,10 @@ static void UIFlowPlay_ScrOpen(lv_obj_t* obj)
|
|||
no_file_msgbox = lv_btn_create(obj, button_msg_bg_scr_uiflowwrnmsg);
|
||||
lv_obj_set_hidden(no_file_msgbox, true);
|
||||
is_no_file = 0;
|
||||
if (NULL == label_msgbox)
|
||||
{
|
||||
label_msgbox = lv_label_create(no_file_msgbox, label_msg_scr_uiflowwrnmsg);
|
||||
}
|
||||
lv_obj_align(label_msgbox, no_file_msgbox, 0, 0, 0);
|
||||
lv_label_set_align(label_msgbox, LV_LABEL_ALIGN_CENTER);
|
||||
lv_label_set_text(label_msgbox, "No File");
|
||||
|
|
Loading…
Reference in New Issue
Block a user