|

楼主 |
发表于 2020-12-26 17:59:41
|
显示全部楼层
好像通过设置 dirty 不能刷新。我自己写了个刷新函数,实测可用。
硬汉可以参考一下,节省宝贵的研究时间。
/*
刷新整个列表
*/
void utility_vertical_list_update(GX_VERTICAL_LIST *list, VOID (*update)(GX_VERTICAL_LIST*, GX_WIDGET*, INT))
{
GX_WIDGET* child;
int index;
if((list == 0) || (update == 0))
{
return;
}
index = list->gx_vertical_list_top_index;
child = _gx_widget_first_client_child_get((GX_WIDGET*)list);
while(child)
{
update(list, child, index);
index++;
child = _gx_widget_next_client_child_get(child);
}
}
其中参数 update 是 vertical list 控件的 row 刷新函数。
|
|