[Lazarus] TTreeView events OnCreateNodeClass and OnAddition

José Mejuto joshyfun at gmail.com
Sun May 2 00:13:47 CEST 2010


Hello Lazarus-List,

Saturday, May 1, 2010, 6:50:52 PM, you wrote:

MG> It is just my humble opinion that instead of adding a published event
MG> property it would be simpler to have a property NodeClass:
MG> TTreeNodeClass.
MG> But since Delphi already defined an event, we use the event. So no need
MG> for a simple property.

IMHO if you have a simple property it would be quite complex to use
different TreeNode types in the same TreeView, just like a TreeView
with files and folders, each one with its derived TreeNode class.

-- 
Best regards,
 José





More information about the Lazarus mailing list