glgui list reset - part-cw/lambdanative GitHub Wiki
(glgui-list-reset g wgt newlist)
glgui-list-reset clears and resets a list widget. It clears the currently selected item index and scrolls to the very top of the list. Then it fills the list items with the new list.
Parameter | Description |
---|---|
g | Graphical User Interface (GUI) for this widget |
wgt | The list widget to be reset |
newlist | A new list to reset the old list |
Example
Example 1: Reset a message list lst in gui mygui to a new list of messages obtained from a data store.
(glgui-list-reset mygui lst (store-ref curstore "MessageList" '()))