Lisp HUG Maillist Archive

tree-view vs. drag-and-drop

I want to build a tree-view whose leaves can be drag-and-dropped to another 
pane.

The documentation appears to imply that this cannot be done with 
capi:tree-view and capi:drag-pane-objects, because tree-view is not a 
capi:output-pane (nor can I see how to hook/override the :move input action 
to my code).

I thought I'd ask - before I implement this from scratch using a pinboard and 
state machines - if anybody knows how to do this simply (or a reasonable 
facsimile).

Thanks
pt


Re: tree-view vs. drag-and-drop

Paul Tarvydas wrote:
> I want to build a tree-view whose leaves can be drag-and-dropped to another 
> pane.
>
> The documentation appears to imply that this cannot be done with 
> capi:tree-view and capi:drag-pane-objects, because tree-view is not a 
> capi:output-pane (nor can I see how to hook/override the :move input action 
> to my code).
>
> I thought I'd ask - before I implement this from scratch using a pinboard and 
> state machines - if anybody knows how to do this simply (or a reasonable 
> facsimile).
Isn't the problem that tree-view is not a pinboard so you can't easily 
find which leaf the cursor is over using, for example, 
capi:pinboard-object-at-position?

Maybe you would be better off starting from capi:graph-pane.

Mitch


Updated at: 2020-12-10 08:42 UTC