炫彩界面库列表锁定末尾行例子

易语言 2020-12-15 13:49:04

炫彩界面库列表锁定末尾行例子

num = 取随机数 (1, 10)
i = XList_AddItemText (m_hList, L (到文本 (XList_GetCount_AD (m_hList) + 1)))
XList_SetItemText (m_hList, i, 1, L (“方便面”))
XList_SetItemText (m_hList, i, 2, L (“¥10”))
XList_SetItemText (m_hList, i, 3, L (到文本 (num)))
XList_SetItemText (m_hList, i, 4, L (到文本 (num × 10)))
XEle_AdjustLayout (m_hList)
XEle_RedrawEle (m_hList, 假)
XSView_ScrollBottom (m_hList)
XShapeText_SetText (m_hShapeText, L (“合计: 共 ” + 到文本 (XList_GetCount_AD (m_hList)) + “ 个项目”))