On Jul 31, 2006, at 9:34 PM, CV wrote:


On Jul 31, 2006, at 2:51 PM, Chuck Pelto wrote:

Which comes first? Which comes last? When is the sorting finished?

If one clicks on the header of a listbox and the sorting takes place, at what point in the process is the sorting done?

Is it with the HeaderPressed? Is it with the SortColumn? Is it with the Change?

I'm asking because after the sorting is accomplished, I'd like to capture the re-sorted items in an array.

Doing capture at the HeaderPressed doesn't seem to capture the change.

Should it be done at the Change? Or someplace else?


I'd suggest loading your array from the Action event handler of a Timer(mode 1) enabled from HeaderPressed. You can experiment with the Period, but regardless, the Timer is designed to wait until other processes are completed, so it should readily capture the sort.

I'd suggest using the CellTag property of theListbox to hold a reference to the cell data and avoid using a separate array to hold the data if possible.

Charles Yeomans
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to