On Sun, 2 May 2010 00:13:47 +0200 José Mejuto <[email protected]> wrote:
> 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. TV.NodeClass:=TFileTreeNode; TV.Items.Add(nil,''); TV.NodeClass:=TDirectoryTreeNode; TV.Items.Add(nil,''); Does not look complicated to me. Mattias -- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
