Menu

#21 Make tree menu drag and dropable

open
nobody
None
5
2002-04-15
2002-04-15
No

How do you do this? I'm not sure exactly, but here are
some ideas.

1) Make the position of the table absolute
2) Register the widths/heights of the bars/Ts as a
variable.
3) Create a mouse event which determines by the table
location and the width and height and the cookie,
whether you are hovering over a tree item.
4) Create a dummy layer if the mouse has gone down
(onMouseDown) and moved (onMouseMove). The dummy layer
would have all the contents that the item would have in
the format of <table><tr><td>content</td></tr></table>
Dragable layers are handled by the DynAPI
(http://www.sourceforge.net/projects/dynapi)
5) For (onMouseUp) determine if the mouse is over a
folder (similarly to #3) and then adjust the tree
accordingly.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.