[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: TreeView.Item.Reparent wont add the arrow
[Thread Prev] | [Thread Next]
- Subject: Re: TreeView.Item.Reparent wont add the arrow
- From: Bruce Steers <bsteers4@xxxxxxxxx>
- Date: Tue, 21 May 2024 13:57:25 +0100
- To: user@xxxxxxxxxxxxxxxxxxxxxx
On Tue, 21 May 2024 at 13:24, Gianluigi <gradobag@xxxxxxxxxxx> wrote: > Il 21/05/24 13:19, Bruce Steers ha scritto: > > If i use TreeView.Add and state the parent and the parent currently has > > no children the item is created and the parent item shows the arrow to > > Expand/Collapse the parent. > > > > Eg, Tree1.Add(sKey, File.Name(sKey), Picture["icon:/16/menu"], sParent) > > > > But if i add an item to an empty parent using Reparent then it does not > > add the arrow. (i use reparent in drag-n-drop organizing) > > > > Eg, Tree1[sKey].Reparent(Tree1.Item.Key) > > > > I tried refreshing different things but i find the only thing that makes > > the arrow appear is when i use .Add() again after the reparent to add > > another item. > > > > Is that a bug or should i trigger the refresh/redraw some other way > > after a reparent? > > > > Respects > > BruceS > > > > Here the DragNDrop example works correctly :-\ > > Regards > Gianluigi > What DragNDrop example? Does it use the Reparent method to move parents? BruceS
Re: TreeView.Item.Reparent wont add the arrow | Gianluigi <gradobag@xxxxxxxxxxx> |
TreeView.Item.Reparent wont add the arrow | Bruce Steers <bsteers4@xxxxxxxxx> |
Re: TreeView.Item.Reparent wont add the arrow | Gianluigi <gradobag@xxxxxxxxxxx> |