[Lazarus] Problem with TCustomTreeView

Mattias Gaertner nc-gaertnma at netcologne.de
Fri Dec 5 11:50:22 CET 2014


On Fri, 05 Dec 2014 10:25:37 +0000
Tony Whyman <tony.whyman at mccallumwhyman.com> wrote:

>[...]
> Proposed Changes:
> 
> I would like to submit a patch that changes the following in
> TCustomTreeView:
> 
> 1. It would be nice if TCustomTreeView.Change was called when the
> TTreeNode.Text (or Data) changed, or when the node changed parents.
> Although for backwards compatibility, this probably has to be a new
> virtual method/event. So propose to add:
> 
> TCustomTreeView.NodeChanged(Node: TTreeNode); virtual;
> 
> and which calls a new event "OnNodeChanged". TCustomTreeView.NodeChanged
> is called from TTreeNode whenever the Text, Data or Parent is changed.

What about the other properties?
Height, Index, Selected, ImageIndex, SelectedIndex, StateIndex,
OverlayIndex, Visible, NodeEffect, ...

 
> 2. TTreeNode.FStates and TTreeNodes.FStates are made visible as a public
> read only property.

ok

 
> 3. Although not essentially, TCustomTreeView.BeginEdit and EndEdit
> should be virtual and FEditingItem made visible as a protected read only
> property.

ok

Mattias




More information about the Lazarus mailing list