OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: domenicomaria on March 12, 2024, 09:15:26 PM

Title: MOVE (drag&drop) an item from a tree control to another one
Post by: domenicomaria on March 12, 2024, 09:15:26 PM
If I drag an item from the tree-00  control to the tree-01 control,
the source item is removed from the source tree
but nothing happens in the target tree ...
...

what is the trick to MOVE an item from a tree to another one ?

i am not able to know what is the item of the target tree where the source item is dropped ...

what have I to do ?
Title: Re: MOVE (drag&drop) an item from a tree control to another one
Post by: domenicomaria on March 12, 2024, 11:30:23 PM
and I need also to move an item in the same tree control from a position to another (always with drag&drop)

I am trying to use
dragoverfromcontrol and dcl-Tree-AddSibling
without success

I would need an example

Title: Re: MOVE (drag&drop) an item from a tree control to another one
Post by: owenwengerd on March 13, 2024, 09:18:16 PM
I believe the Drag N Drop sample shows drag/drop in a single tree control, and also between tree and list controls.
Title: Re: MOVE (drag&drop) an item from a tree control to another one
Post by: domenicomaria on March 14, 2024, 01:30:39 AM
Quote from: owenwengerd on March 13, 2024, 09:18:16 PMI believe the Drag N Drop sample shows drag/drop in a single tree control, and also between tree and list controls.

Thanks for the reply.

But with drag&drop I can't MOVE an element from one TREE control to another

And I can't even MOVE an item from one location to another in the same control.
Title: Re: MOVE (drag&drop) an item from a tree control to another one
Post by: owenwengerd on March 14, 2024, 09:05:56 PM
It is working fine for me in BricsCAD V24. I don't know why it isn't working for you.
Title: Re: MOVE (drag&drop) an item from a tree control to another one
Post by: domenicomaria on March 15, 2024, 02:28:58 AM
I tried your sample TREE.lsp
also in acad2024
and it is not possible using drag&drop
to MOVE an item from a tree control to another
and in the same tree, from a position to another ...