[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: TreeView.Item.Reparent wont add the arrow


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


Follow-Ups:
Re: TreeView.Item.Reparent wont add the arrowBruce Steers <bsteers4@xxxxxxxxx>
References:
TreeView.Item.Reparent wont add the arrowBruce Steers <bsteers4@xxxxxxxxx>