Recent

Author Topic: Question about TTreeView and sort triggers  (Read 2188 times)

outlyer

  • Newbie
  • Posts: 4
Question about TTreeView and sort triggers
« on: March 24, 2015, 06:03:43 pm »
Hi,

my understanding is that setting a TTreeView's SortType to something other than stNone and defining an OnCompare handler should be enough to keep a TreeView sorted, but I can't get it to work.

My OnCompare is not called when I add a node, nor when I change its text or data (tried with the respective stText, stData and stBoth). The only time it's called is if I call manually TreeView.AlphaSort.

Can someone point out what am I missing?

 

TinyPortal © 2005-2018