|

楼主 |
发表于 2023-9-12 20:28:34
|
显示全部楼层
GX_VERTICAL_LIST *list;
// INT selected_index;
DROP_LIST_ITEM *selected_item;
GX_STRING text;
/* Get popup list of the drop list. */
gx_drop_list_popup_get(&screen_comm_modbus_set.screen_comm_modbus_set_drop_list_baudrate, &list);
/* Get the selected index of the popup list. */
gx_vertical_list_selected_index_get(list, &selected_index);
/* Get popup list of the drop list. */
gx_drop_list_popup_get(&screen_comm_modbus_set.screen_comm_modbus_set_drop_list_stopbits, &list);
/* Get the selected index of the popup list. */
gx_vertical_list_selected_index_get(list, &selected_index1);
比较笨的方法是读取索引,哪个变了就是操作哪个了,回头在研究一下。 |
|