[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
TreeView.Item.Reparent wont add the arrow
[Thread Prev] | [Thread Next]
- Subject: TreeView.Item.Reparent wont add the arrow
- From: Bruce Steers <bsteers4@xxxxxxxxx>
- Date: Tue, 21 May 2024 12:19:05 +0100
- To: Gambas Mailing List <user@xxxxxxxxxxxxxxxxxxxxxx>
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
Re: TreeView.Item.Reparent wont add the arrow | Gianluigi <gradobag@xxxxxxxxxxx> |