PixInsight Forum (historical)

Software Development => PCL and PJSR Development => Topic started by: mschuster on 2012 September 24 11:38:02

Title: PJSR TreeBox customized header sorting wish list
Post by: mschuster on 2012 September 24 11:38:02
I'd like to be able to customized TreeBox header sorting with a pair of comparison functions for each column, one for ascending sorts and the other for descending sorts.
Thanks,
Mike
Title: Re: PJSR TreeBox customized header sorting wish list
Post by: bitli on 2012 September 25 11:32:39
I second. Although we need a single comparator  function.
An onSort event or something similar (a  way to know that the order changed or which column is being sorted).
--bitli
Title: Re: PJSR TreeBox customized header sorting wish list
Post by: mschuster on 2012 September 25 12:46:25
A single function is fine, but of course it needs arguments describing which column and whether ascending or descending. Also, the pair being compared needs to be specified by the child indices rather than the actual text contents of the cells. This for most flexibility.
-Mike

Update: Support for header toolTips would be nice also.