makotok/Hanappe

Flower widget redraw

Closed this issue · 2 comments

Thanks for all of your help. Flower is so great.

I have a question about redraw. I have a Flower listbox with items. Then, a new item comes in on socket. I want to add the new item to the list box data and then have it redraw with the added item. What is the best way?

Maybe when I receive socket message I add to listbox data and then invoke some callback to notify widget to redraw?

Please call the invalidateDisplay function.

listBox:invalidateDisplay()

If you want to reflect the display immediately, please call the updateDisplay function.

Thank you so much, it works great!