Thank you,
But almost I am really confused, that example is for Delphi, the
TTreeView implementation of Lazarus is a little bit different, the
number of parameters and declaration of CustomSort are different.
I just try with the example of the webpage and I get a compiler error:
Error: Incompatible type for arg no. 1: Got "<address of
function(TTreeNode, TTreeNode, LongInt):LongInt;StdCall>", expected
"<procedure variable type of function(TTreeNode, TTreeNode):LongInt of
object;Register>"
Thank you for your help.
Alex
Darius Blaszijk wrote:
This is the first hit Google gave me :)
http://users.iafrica.com/d/da/dart/Delphi/TTreeView/TTreeView_eg11.html
Darius
----- Original Message ----- From: "Alex" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Tuesday, January 02, 2007 12:47 AM
Subject: [lazarus] Example how to sort a TTreeView
First of all happy new year,
Can anybody show me how to sort a TTreeview? I am trying with the
Customsort method but I don“t know how to call the right parameters.
|TTreeView.CustomSort(SortProc: TTreeNodeCompare): Boolean;|
<http://www.lazarus.freepascal.org/lcl_doc/TCustomTreeView.html#link2668>
Could you show me a little example of how to declare the SortProc
Variable of type TTreeNodeCompare?
Thank you for your help,
Alex
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives