How to get know a Listbox finished sorting

Hi All,

I have a desktop listbox and I would like to know when the listbox finished sorting (user pressed on header), and then to perform something else base on the new sorting order. How can it be done?

If a row is selected when the user clicks on a column header, then the Change event will be called after the end of the sort.

there is also a headerpressed event for the listbox, that seems what you’re searching for ?
http://documentation.xojo.com/index.php/ListBox.HeaderPressed

You can start a timer with mode = 1 and period = 0 to be run when listbox finishes.

[quote=355952:@Jean-Yves Pochez]there is also a headerpressed event for the listbox, that seems what you’re searching for ?
http://documentation.xojo.com/index.php/ListBox.HeaderPressed[/quote]
That event happens before the sort.

Yes, I need to add a timer (mode off) to the window, and the start the timer in the ListBox.SortColumn event. Put the code in the timer.action will perform after the list box finishes sorting. I know the way now but just don’t know how it works.