D
Dom
I want to allow drag and drop in a treeview. Of course, as you drag
too close to the bottom or top, I want the nodes to scroll so that the
user can drag to a node that is currently out of sight.
I have the basics of it done. When the user drags to a distance from
the top that is half a node height, the TreeView scrolls one way, and
as the user drags to a distance from the bottom that is half a node
height, the TreeView scrolls in the other direction. The problem
is ... sometimes there is a scroll bar at the bottom, and my
calculations force the user to drag into the scroll bar.
I could handle this if the TreeView gave me a property to indicate
that the scoll bar is visible so that I could subtract this from the
height of the treeview. But I can't find it.
Can someone give me a general approach here?
too close to the bottom or top, I want the nodes to scroll so that the
user can drag to a node that is currently out of sight.
I have the basics of it done. When the user drags to a distance from
the top that is half a node height, the TreeView scrolls one way, and
as the user drags to a distance from the bottom that is half a node
height, the TreeView scrolls in the other direction. The problem
is ... sometimes there is a scroll bar at the bottom, and my
calculations force the user to drag into the scroll bar.
I could handle this if the TreeView gave me a property to indicate
that the scoll bar is visible so that I could subtract this from the
height of the treeview. But I can't find it.
Can someone give me a general approach here?