程序页面修改

This commit is contained in:
sc committed 2026-03-07 00:10:52 +08:00
1 parent 3554991a6d
commit 7184c188c5
5 files changed
+52 -15

No files matched your search

+12
View File
@@ -182,11 +182,19 @@ static void table_click_event_cb(lv_event_t *e) {
rt_snprintf(value_W, sizeof(value_W),lv_table_get_cell_value(guider_ui.screen_pname_row, row, 0));
UI_pname_step_row(value_W);
UI_pname_step_inf(value_W,0);
//按钮(删除,存储)生效
lv_obj_clear_state(guider_ui.screen_set_Delete,LV_STATE_DISABLED);
lv_obj_clear_state(guider_ui.screen_set_Save,LV_STATE_DISABLED);
}
else if(table == guider_ui.screen_pname_step_row){//工艺程序细节信息
pname_step_row = row;// 写入行号
value_S = atoi(lv_table_get_cell_value(guider_ui.screen_pname_step_row, row, 0));
UI_pname_step_inf(value_W,value_S);
//按钮(编辑,插入)生效
lv_obj_clear_state(guider_ui.screen_set_Edit,LV_STATE_DISABLED);
lv_obj_clear_state(guider_ui.screen_set_Insert,LV_STATE_DISABLED);
}
}
@@ -261,6 +269,10 @@ static void tabview_event_cb(lv_event_t *e)
break;
case 3://程序页面
lv_obj_add_state(guider_ui.screen_set_Edit,LV_STATE_DISABLED);
lv_obj_add_state(guider_ui.screen_set_Insert,LV_STATE_DISABLED);
lv_obj_add_state(guider_ui.screen_set_Delete,LV_STATE_DISABLED);
lv_obj_add_state(guider_ui.screen_set_Save,LV_STATE_DISABLED);
UI_pname_row();
break;
case 4: