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

TreeView.Item.Reparent wont add the arrow


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

Follow-Ups:
Re: TreeView.Item.Reparent wont add the arrowGianluigi <gradobag@xxxxxxxxxxx>