[Lazarus] TTreeView events OnCreateNodeClass and OnAddition
Mattias Gaertner
nc-gaertnma at netcologne.de
Sat May 1 18:50:52 CEST 2010
On Sat, 1 May 2010 20:00:51 +0300
Juha Manninen <juha.manninen at phnet.fi> wrote:
> Mattias Gaertner wrote:
> > The easiest way would be a simple property NodeClass: TTreeNodeClass.
>
> Where should I add that property? if nodes are created with
> TreeView.Items.AddObject(...)
> or similar method, there is no way to define the node type.
It is just my humble opinion that instead of adding a published event
property it would be simpler to have a property NodeClass:
TTreeNodeClass.
But since Delphi already defined an event, we use the event. So no need
for a simple property.
Mattias
More information about the Lazarus
mailing list