Author Topic: PJSR TreeBox customized header sorting wish list  (Read 3880 times)

Offline mschuster

  • PTeam Member
  • PixInsight Jedi
  • *****
  • Posts: 1087
PJSR TreeBox customized header sorting wish list
« 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

Offline bitli

  • PTeam Member
  • PixInsight Guru
  • ****
  • Posts: 513
Re: PJSR TreeBox customized header sorting wish list
« Reply #1 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

Offline mschuster

  • PTeam Member
  • PixInsight Jedi
  • *****
  • Posts: 1087
Re: PJSR TreeBox customized header sorting wish list
« Reply #2 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.
« Last Edit: 2012 September 25 22:14:51 by mschuster »