程序页面添加删除功能
This commit is contained in:
1 parent
c424b4f626
commit
5d5b79ed18
9 files changed
+343
-56
No files matched your search
@@ -300,6 +300,7 @@ static void screen_set_Delete_event_handler (lv_event_t *e)
|
||||
switch (code) {
|
||||
case LV_EVENT_CLICKED:
|
||||
{
|
||||
lv_obj_clear_flag(guider_ui.screen_step_DELETE, LV_OBJ_FLAG_HIDDEN);
|
||||
break;
|
||||
}
|
||||
default:
|
||||
@@ -347,7 +348,7 @@ static void screen_stepinf_s1_event_handler (lv_event_t *e)
|
||||
switch (code) {
|
||||
case LV_EVENT_CLICKED:
|
||||
{
|
||||
//uint16_t id = lv_dropdown_get_selected(guider_ui.screen_stepinf_s1);
|
||||
uint16_t id = lv_dropdown_get_selected(guider_ui.screen_stepinf_s1);
|
||||
lv_obj_clear_flag(guider_ui.screen_stepinf_s1b, LV_OBJ_FLAG_HIDDEN);
|
||||
lv_obj_add_flag(guider_ui.screen_stepinf_s2b, LV_OBJ_FLAG_HIDDEN);
|
||||
lv_obj_add_flag(guider_ui.screen_stepinf_s3b, LV_OBJ_FLAG_HIDDEN);
|
||||
@@ -364,7 +365,7 @@ static void screen_stepinf_s2_event_handler (lv_event_t *e)
|
||||
switch (code) {
|
||||
case LV_EVENT_CLICKED:
|
||||
{
|
||||
//uint16_t id = lv_dropdown_get_selected(guider_ui.screen_stepinf_s2);
|
||||
uint16_t id = lv_dropdown_get_selected(guider_ui.screen_stepinf_s2);
|
||||
lv_obj_add_flag(guider_ui.screen_stepinf_s1b, LV_OBJ_FLAG_HIDDEN);
|
||||
lv_obj_clear_flag(guider_ui.screen_stepinf_s2b, LV_OBJ_FLAG_HIDDEN);
|
||||
lv_obj_add_flag(guider_ui.screen_stepinf_s3b, LV_OBJ_FLAG_HIDDEN);
|
||||
@@ -381,7 +382,7 @@ static void screen_stepinf_s3_event_handler (lv_event_t *e)
|
||||
switch (code) {
|
||||
case LV_EVENT_CLICKED:
|
||||
{
|
||||
//uint16_t id = lv_dropdown_get_selected(guider_ui.screen_stepinf_s3);
|
||||
uint16_t id = lv_dropdown_get_selected(guider_ui.screen_stepinf_s3);
|
||||
lv_obj_add_flag(guider_ui.screen_stepinf_s1b, LV_OBJ_FLAG_HIDDEN);
|
||||
lv_obj_add_flag(guider_ui.screen_stepinf_s2b, LV_OBJ_FLAG_HIDDEN);
|
||||
lv_obj_clear_flag(guider_ui.screen_stepinf_s1b, LV_OBJ_FLAG_HIDDEN);
|
||||
@@ -399,6 +400,55 @@ static void screen_btn_1_event_handler (lv_event_t *e)
|
||||
case LV_EVENT_CLICKED:
|
||||
{
|
||||
lv_obj_add_flag(guider_ui.screen_stepinf, LV_OBJ_FLAG_HIDDEN);
|
||||
lv_obj_add_flag(guider_ui.screen_stepinf_s3b, LV_OBJ_FLAG_HIDDEN);
|
||||
lv_obj_add_flag(guider_ui.screen_stepinf_s2b, LV_OBJ_FLAG_HIDDEN);
|
||||
lv_obj_add_flag(guider_ui.screen_stepinf_s1b, LV_OBJ_FLAG_HIDDEN);
|
||||
break;
|
||||
}
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
static void screen_btn_2_event_handler (lv_event_t *e)
|
||||
{
|
||||
lv_event_code_t code = lv_event_get_code(e);
|
||||
switch (code) {
|
||||
case LV_EVENT_CLICKED:
|
||||
{
|
||||
lv_obj_add_flag(guider_ui.screen_stepinf, LV_OBJ_FLAG_HIDDEN);
|
||||
lv_obj_add_flag(guider_ui.screen_stepinf_s1b, LV_OBJ_FLAG_HIDDEN);
|
||||
lv_obj_add_flag(guider_ui.screen_stepinf_s2b, LV_OBJ_FLAG_HIDDEN);
|
||||
lv_obj_add_flag(guider_ui.screen_stepinf_s3b, LV_OBJ_FLAG_HIDDEN);
|
||||
break;
|
||||
}
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
static void screen_step_DELETE_no_event_handler (lv_event_t *e)
|
||||
{
|
||||
lv_event_code_t code = lv_event_get_code(e);
|
||||
switch (code) {
|
||||
case LV_EVENT_CLICKED:
|
||||
{
|
||||
lv_obj_add_flag(guider_ui.screen_step_DELETE, LV_OBJ_FLAG_HIDDEN);
|
||||
break;
|
||||
}
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
static void screen_step_DELETE_yes_event_handler (lv_event_t *e)
|
||||
{
|
||||
lv_event_code_t code = lv_event_get_code(e);
|
||||
switch (code) {
|
||||
case LV_EVENT_CLICKED:
|
||||
{
|
||||
UI_pname_del();
|
||||
lv_obj_add_flag(guider_ui.screen_step_DELETE, LV_OBJ_FLAG_HIDDEN);
|
||||
break;
|
||||
}
|
||||
default:
|
||||
@@ -434,6 +484,9 @@ void events_init_screen (lv_ui *ui)
|
||||
lv_obj_add_event_cb(ui->screen_stepinf_s2, screen_stepinf_s2_event_handler, LV_EVENT_ALL, ui);
|
||||
lv_obj_add_event_cb(ui->screen_stepinf_s3, screen_stepinf_s3_event_handler, LV_EVENT_ALL, ui);
|
||||
lv_obj_add_event_cb(ui->screen_btn_1, screen_btn_1_event_handler, LV_EVENT_ALL, ui);
|
||||
lv_obj_add_event_cb(ui->screen_btn_2, screen_btn_2_event_handler, LV_EVENT_ALL, ui);
|
||||
lv_obj_add_event_cb(ui->screen_step_DELETE_no, screen_step_DELETE_no_event_handler, LV_EVENT_ALL, ui);
|
||||
lv_obj_add_event_cb(ui->screen_step_DELETE_yes, screen_step_DELETE_yes_event_handler, LV_EVENT_ALL, ui);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -476,6 +476,14 @@ typedef struct
|
||||
lv_obj_t *screen_label_52;
|
||||
lv_obj_t *screen_stepinf_step;
|
||||
lv_obj_t *screen_label_53;
|
||||
lv_obj_t *screen_step_DELETE;
|
||||
lv_obj_t *screen_step_DELETE_no;
|
||||
lv_obj_t *screen_step_DELETE_no_label;
|
||||
lv_obj_t *screen_step_DELETE_yes;
|
||||
lv_obj_t *screen_step_DELETE_yes_label;
|
||||
lv_obj_t *screen_step_DELETE_namep;
|
||||
lv_obj_t *screen_step_DELETE_name;
|
||||
lv_obj_t *screen_step_DELETE_inf;
|
||||
lv_obj_t *g_kb_top_layer;
|
||||
lv_obj_t *screen_w_list;
|
||||
lv_obj_t *screen_list_inf;
|
||||
|
||||
@@ -7614,8 +7614,8 @@ void setup_scr_screen(lv_ui *ui)
|
||||
lv_textarea_set_placeholder_text(ui->screen_stepinf_p1, "");
|
||||
lv_textarea_set_password_bullet(ui->screen_stepinf_p1, "*");
|
||||
lv_textarea_set_password_mode(ui->screen_stepinf_p1, false);
|
||||
lv_textarea_set_one_line(ui->screen_stepinf_p1, false);
|
||||
lv_textarea_set_accepted_chars(ui->screen_stepinf_p1, "");
|
||||
lv_textarea_set_one_line(ui->screen_stepinf_p1, true);
|
||||
lv_textarea_set_accepted_chars(ui->screen_stepinf_p1, "0123456789.");
|
||||
lv_textarea_set_max_length(ui->screen_stepinf_p1, 32);
|
||||
#if LV_USE_KEYBOARD != 0 || LV_USE_ZH_KEYBOARD != 0
|
||||
lv_obj_add_event_cb(ui->screen_stepinf_p1, ta_event_cb, LV_EVENT_ALL, ui->g_kb_top_layer);
|
||||
@@ -7654,8 +7654,8 @@ void setup_scr_screen(lv_ui *ui)
|
||||
lv_textarea_set_placeholder_text(ui->screen_stepinf_p2, "");
|
||||
lv_textarea_set_password_bullet(ui->screen_stepinf_p2, "*");
|
||||
lv_textarea_set_password_mode(ui->screen_stepinf_p2, false);
|
||||
lv_textarea_set_one_line(ui->screen_stepinf_p2, false);
|
||||
lv_textarea_set_accepted_chars(ui->screen_stepinf_p2, "");
|
||||
lv_textarea_set_one_line(ui->screen_stepinf_p2, true);
|
||||
lv_textarea_set_accepted_chars(ui->screen_stepinf_p2, "0123456789.");
|
||||
lv_textarea_set_max_length(ui->screen_stepinf_p2, 32);
|
||||
#if LV_USE_KEYBOARD != 0 || LV_USE_ZH_KEYBOARD != 0
|
||||
lv_obj_add_event_cb(ui->screen_stepinf_p2, ta_event_cb, LV_EVENT_ALL, ui->g_kb_top_layer);
|
||||
@@ -7694,8 +7694,8 @@ void setup_scr_screen(lv_ui *ui)
|
||||
lv_textarea_set_placeholder_text(ui->screen_stepinf_p3, "");
|
||||
lv_textarea_set_password_bullet(ui->screen_stepinf_p3, "*");
|
||||
lv_textarea_set_password_mode(ui->screen_stepinf_p3, false);
|
||||
lv_textarea_set_one_line(ui->screen_stepinf_p3, false);
|
||||
lv_textarea_set_accepted_chars(ui->screen_stepinf_p3, "");
|
||||
lv_textarea_set_one_line(ui->screen_stepinf_p3, true);
|
||||
lv_textarea_set_accepted_chars(ui->screen_stepinf_p3, "0123456789.");
|
||||
lv_textarea_set_max_length(ui->screen_stepinf_p3, 32);
|
||||
#if LV_USE_KEYBOARD != 0 || LV_USE_ZH_KEYBOARD != 0
|
||||
lv_obj_add_event_cb(ui->screen_stepinf_p3, ta_event_cb, LV_EVENT_ALL, ui->g_kb_top_layer);
|
||||
@@ -7734,8 +7734,8 @@ void setup_scr_screen(lv_ui *ui)
|
||||
lv_textarea_set_placeholder_text(ui->screen_stepinf_p4, "");
|
||||
lv_textarea_set_password_bullet(ui->screen_stepinf_p4, "*");
|
||||
lv_textarea_set_password_mode(ui->screen_stepinf_p4, false);
|
||||
lv_textarea_set_one_line(ui->screen_stepinf_p4, false);
|
||||
lv_textarea_set_accepted_chars(ui->screen_stepinf_p4, "");
|
||||
lv_textarea_set_one_line(ui->screen_stepinf_p4, true);
|
||||
lv_textarea_set_accepted_chars(ui->screen_stepinf_p4, "0123456789.");
|
||||
lv_textarea_set_max_length(ui->screen_stepinf_p4, 32);
|
||||
#if LV_USE_KEYBOARD != 0 || LV_USE_ZH_KEYBOARD != 0
|
||||
lv_obj_add_event_cb(ui->screen_stepinf_p4, ta_event_cb, LV_EVENT_ALL, ui->g_kb_top_layer);
|
||||
@@ -7774,8 +7774,8 @@ void setup_scr_screen(lv_ui *ui)
|
||||
lv_textarea_set_placeholder_text(ui->screen_stepinf_p5, "");
|
||||
lv_textarea_set_password_bullet(ui->screen_stepinf_p5, "*");
|
||||
lv_textarea_set_password_mode(ui->screen_stepinf_p5, false);
|
||||
lv_textarea_set_one_line(ui->screen_stepinf_p5, false);
|
||||
lv_textarea_set_accepted_chars(ui->screen_stepinf_p5, "");
|
||||
lv_textarea_set_one_line(ui->screen_stepinf_p5, true);
|
||||
lv_textarea_set_accepted_chars(ui->screen_stepinf_p5, "0123456789.");
|
||||
lv_textarea_set_max_length(ui->screen_stepinf_p5, 32);
|
||||
#if LV_USE_KEYBOARD != 0 || LV_USE_ZH_KEYBOARD != 0
|
||||
lv_obj_add_event_cb(ui->screen_stepinf_p5, ta_event_cb, LV_EVENT_ALL, ui->g_kb_top_layer);
|
||||
@@ -8166,6 +8166,146 @@ void setup_scr_screen(lv_ui *ui)
|
||||
lv_obj_set_style_pad_left(ui->screen_label_53, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_shadow_width(ui->screen_label_53, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
|
||||
//Write codes screen_step_DELETE
|
||||
ui->screen_step_DELETE = lv_obj_create(ui->screen);
|
||||
lv_obj_set_pos(ui->screen_step_DELETE, 400, 105);
|
||||
lv_obj_set_size(ui->screen_step_DELETE, 300, 380);
|
||||
lv_obj_set_scrollbar_mode(ui->screen_step_DELETE, LV_SCROLLBAR_MODE_OFF);
|
||||
lv_obj_add_flag(ui->screen_step_DELETE, LV_OBJ_FLAG_HIDDEN);
|
||||
|
||||
//Write style for screen_step_DELETE, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
|
||||
lv_obj_set_style_border_width(ui->screen_step_DELETE, 5, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_border_opa(ui->screen_step_DELETE, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_border_color(ui->screen_step_DELETE, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_border_side(ui->screen_step_DELETE, LV_BORDER_SIDE_FULL, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_radius(ui->screen_step_DELETE, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_bg_opa(ui->screen_step_DELETE, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_bg_color(ui->screen_step_DELETE, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_bg_grad_dir(ui->screen_step_DELETE, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_pad_top(ui->screen_step_DELETE, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_pad_bottom(ui->screen_step_DELETE, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_pad_left(ui->screen_step_DELETE, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_pad_right(ui->screen_step_DELETE, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_shadow_width(ui->screen_step_DELETE, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
|
||||
//Write codes screen_step_DELETE_no
|
||||
ui->screen_step_DELETE_no = lv_btn_create(ui->screen_step_DELETE);
|
||||
ui->screen_step_DELETE_no_label = lv_label_create(ui->screen_step_DELETE_no);
|
||||
lv_label_set_text(ui->screen_step_DELETE_no_label, "取消");
|
||||
lv_label_set_long_mode(ui->screen_step_DELETE_no_label, LV_LABEL_LONG_WRAP);
|
||||
lv_obj_align(ui->screen_step_DELETE_no_label, LV_ALIGN_CENTER, 0, 0);
|
||||
lv_obj_set_style_pad_all(ui->screen_step_DELETE_no, 0, LV_STATE_DEFAULT);
|
||||
lv_obj_set_width(ui->screen_step_DELETE_no_label, LV_PCT(100));
|
||||
lv_obj_set_pos(ui->screen_step_DELETE_no, 25, 290);
|
||||
lv_obj_set_size(ui->screen_step_DELETE_no, 100, 50);
|
||||
|
||||
//Write style for screen_step_DELETE_no, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
|
||||
lv_obj_set_style_text_color(ui->screen_step_DELETE_no, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_text_font(ui->screen_step_DELETE_no, &lv_font_simsun_24, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_text_opa(ui->screen_step_DELETE_no, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_text_align(ui->screen_step_DELETE_no, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_bg_opa(ui->screen_step_DELETE_no, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_bg_color(ui->screen_step_DELETE_no, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_bg_grad_dir(ui->screen_step_DELETE_no, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_border_width(ui->screen_step_DELETE_no, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_shadow_width(ui->screen_step_DELETE_no, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_radius(ui->screen_step_DELETE_no, 5, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
|
||||
//Write codes screen_step_DELETE_yes
|
||||
ui->screen_step_DELETE_yes = lv_btn_create(ui->screen_step_DELETE);
|
||||
ui->screen_step_DELETE_yes_label = lv_label_create(ui->screen_step_DELETE_yes);
|
||||
lv_label_set_text(ui->screen_step_DELETE_yes_label, "确认");
|
||||
lv_label_set_long_mode(ui->screen_step_DELETE_yes_label, LV_LABEL_LONG_WRAP);
|
||||
lv_obj_align(ui->screen_step_DELETE_yes_label, LV_ALIGN_CENTER, 0, 0);
|
||||
lv_obj_set_style_pad_all(ui->screen_step_DELETE_yes, 0, LV_STATE_DEFAULT);
|
||||
lv_obj_set_width(ui->screen_step_DELETE_yes_label, LV_PCT(100));
|
||||
lv_obj_set_pos(ui->screen_step_DELETE_yes, 165, 290);
|
||||
lv_obj_set_size(ui->screen_step_DELETE_yes, 100, 50);
|
||||
|
||||
//Write style for screen_step_DELETE_yes, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
|
||||
lv_obj_set_style_bg_opa(ui->screen_step_DELETE_yes, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_bg_color(ui->screen_step_DELETE_yes, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_bg_grad_dir(ui->screen_step_DELETE_yes, LV_GRAD_DIR_NONE, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_border_width(ui->screen_step_DELETE_yes, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_radius(ui->screen_step_DELETE_yes, 5, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_shadow_width(ui->screen_step_DELETE_yes, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_text_color(ui->screen_step_DELETE_yes, lv_color_hex(0xffffff), LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_text_font(ui->screen_step_DELETE_yes, &lv_font_simsun_24, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_text_opa(ui->screen_step_DELETE_yes, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_text_align(ui->screen_step_DELETE_yes, LV_TEXT_ALIGN_CENTER, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
|
||||
//Write codes screen_step_DELETE_namep
|
||||
ui->screen_step_DELETE_namep = lv_label_create(ui->screen_step_DELETE);
|
||||
lv_label_set_text(ui->screen_step_DELETE_namep, "工艺");
|
||||
lv_label_set_long_mode(ui->screen_step_DELETE_namep, LV_LABEL_LONG_WRAP);
|
||||
lv_obj_set_pos(ui->screen_step_DELETE_namep, 10, 15);
|
||||
lv_obj_set_size(ui->screen_step_DELETE_namep, 50, 25);
|
||||
|
||||
//Write style for screen_step_DELETE_namep, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
|
||||
lv_obj_set_style_border_width(ui->screen_step_DELETE_namep, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_radius(ui->screen_step_DELETE_namep, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_text_color(ui->screen_step_DELETE_namep, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_text_font(ui->screen_step_DELETE_namep, &lv_font_simsun_24, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_text_opa(ui->screen_step_DELETE_namep, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_text_letter_space(ui->screen_step_DELETE_namep, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_text_line_space(ui->screen_step_DELETE_namep, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_text_align(ui->screen_step_DELETE_namep, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_bg_opa(ui->screen_step_DELETE_namep, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_pad_top(ui->screen_step_DELETE_namep, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_pad_right(ui->screen_step_DELETE_namep, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_pad_bottom(ui->screen_step_DELETE_namep, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_pad_left(ui->screen_step_DELETE_namep, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_shadow_width(ui->screen_step_DELETE_namep, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
|
||||
//Write codes screen_step_DELETE_name
|
||||
ui->screen_step_DELETE_name = lv_label_create(ui->screen_step_DELETE);
|
||||
lv_label_set_text(ui->screen_step_DELETE_name, "工艺");
|
||||
lv_label_set_long_mode(ui->screen_step_DELETE_name, LV_LABEL_LONG_WRAP);
|
||||
lv_obj_set_pos(ui->screen_step_DELETE_name, 105, 15);
|
||||
lv_obj_set_size(ui->screen_step_DELETE_name, 180, 25);
|
||||
|
||||
//Write style for screen_step_DELETE_name, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
|
||||
lv_obj_set_style_border_width(ui->screen_step_DELETE_name, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_radius(ui->screen_step_DELETE_name, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_text_color(ui->screen_step_DELETE_name, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_text_font(ui->screen_step_DELETE_name, &lv_font_simsun_24, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_text_opa(ui->screen_step_DELETE_name, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_text_letter_space(ui->screen_step_DELETE_name, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_text_line_space(ui->screen_step_DELETE_name, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_text_align(ui->screen_step_DELETE_name, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_bg_opa(ui->screen_step_DELETE_name, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_pad_top(ui->screen_step_DELETE_name, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_pad_right(ui->screen_step_DELETE_name, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_pad_bottom(ui->screen_step_DELETE_name, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_pad_left(ui->screen_step_DELETE_name, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_shadow_width(ui->screen_step_DELETE_name, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
|
||||
//Write codes screen_step_DELETE_inf
|
||||
ui->screen_step_DELETE_inf = lv_label_create(ui->screen_step_DELETE);
|
||||
lv_label_set_text(ui->screen_step_DELETE_inf, "信息");
|
||||
lv_label_set_long_mode(ui->screen_step_DELETE_inf, LV_LABEL_LONG_WRAP);
|
||||
lv_obj_set_pos(ui->screen_step_DELETE_inf, 5, 50);
|
||||
lv_obj_set_size(ui->screen_step_DELETE_inf, 280, 200);
|
||||
|
||||
//Write style for screen_step_DELETE_inf, Part: LV_PART_MAIN, State: LV_STATE_DEFAULT.
|
||||
lv_obj_set_style_border_width(ui->screen_step_DELETE_inf, 1, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_border_opa(ui->screen_step_DELETE_inf, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_border_color(ui->screen_step_DELETE_inf, lv_color_hex(0x2195f6), LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_border_side(ui->screen_step_DELETE_inf, LV_BORDER_SIDE_FULL, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_radius(ui->screen_step_DELETE_inf, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_text_color(ui->screen_step_DELETE_inf, lv_color_hex(0x000000), LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_text_font(ui->screen_step_DELETE_inf, &lv_font_simsun_24, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_text_opa(ui->screen_step_DELETE_inf, 255, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_text_letter_space(ui->screen_step_DELETE_inf, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_text_line_space(ui->screen_step_DELETE_inf, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_text_align(ui->screen_step_DELETE_inf, LV_TEXT_ALIGN_LEFT, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_bg_opa(ui->screen_step_DELETE_inf, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_pad_top(ui->screen_step_DELETE_inf, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_pad_right(ui->screen_step_DELETE_inf, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_pad_bottom(ui->screen_step_DELETE_inf, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_pad_left(ui->screen_step_DELETE_inf, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
lv_obj_set_style_shadow_width(ui->screen_step_DELETE_inf, 0, LV_PART_MAIN|LV_STATE_DEFAULT);
|
||||
|
||||
//The custom code of screen.
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user