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

Re: TreeView.Item.Reparent wont add the arrow


On Tue, 21 May 2024 at 15:58, Benoît Minisini <
benoit.minisini@xxxxxxxxxxxxxxxx> wrote:

> Le 21/05/2024 à 15:44, Bruce Steers a écrit :
> >
> >
> > On Tue, 21 May 2024 at 14:18, Gianluigi <gradobag@xxxxxxxxxxx
> > <mailto:gradobag@xxxxxxxxxxx>> wrote:
> >
> >     Il 21/05/24 14:57, Bruce Steers ha scritto:
> >      > What DragNDrop example?
> >      > Does it use the Reparent method to move parents?
> >      >
> >      > BruceS
> >
> >     The example that is in Gambas's basic examples:
> >
> https://gitlab.com/gambas/gambas/-/tree/master/app/examples/Basic?ref_type=heads
> <
> https://gitlab.com/gambas/gambas/-/tree/master/app/examples/Basic?ref_type=heads
> >
> >     Does not use reparent, but I understood that you were asking for
> another
> >     way to do it
> >
> >
> > No i was asking if there was a way to make the arrow appear when using
> > Reparent.
> >
> > After some more tinkering i have found reparent does make an arrow
> > appear if one of the items already has children so at least one arrow is
> > already showing.
> >
> > But using Reparent when there are no arrows yet does not refresh to show
> > the arrows.
> >
> > I attach a simple example.
> > ...
> It has been fixed in master.
>
> Regards,
>
> --
> Benoît Minisini.
>

Excellent, Thank you Ben , I did have a look at the code for a while but
could not figure out the fix.

Respects
BruceS

Follow-Ups:
Re: TreeView.Item.Reparent wont add the arrowGianluigi <gradobag@xxxxxxxxxxx>
References:
TreeView.Item.Reparent wont add the arrowBruce Steers <bsteers4@xxxxxxxxx>
Re: TreeView.Item.Reparent wont add the arrowGianluigi <gradobag@xxxxxxxxxxx>
Re: TreeView.Item.Reparent wont add the arrowBruce Steers <bsteers4@xxxxxxxxx>
Re: TreeView.Item.Reparent wont add the arrowGianluigi <gradobag@xxxxxxxxxxx>
Re: TreeView.Item.Reparent wont add the arrowBruce Steers <bsteers4@xxxxxxxxx>
Re: TreeView.Item.Reparent wont add the arrowBenoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>