F
Fiskmiddagen
Hi,
I have used the standard TreeView control (SP 6) quite some time. But I have
never tried to do a drag-drop of the nodes. The problem is that the TreeView
control is not scrolling the tree while a DragOver event. That means you can
only drop on what you can see.
Anyway, there are a couple of articles about this problem and they all for
VB5/6 and C++. They all recommend to do the following:
Use a timer to do API - SendMessage calls - Sendmessage hwnd, 277&, 0&(for
up) or 1&(for down), vbnull - I assume I can use OnTimer for Access. Before
the Sendmessage call a drophighligt is done.
In the DragOver event give the x,y for the droplight in the timer event and
enable the timer.
Still it doesn't work. No scrolling down, but I think up works.
I have a Treeview object in VBA called m_tree and is set to the Me.TreeView
which is the control itself. What I have noticed is that Me.TreeView has not
got any hwnd property while the m_tree has got. Is that correct?
Please - has anyone tried this? Are there any other solution?
Regards,
BAnders
I have used the standard TreeView control (SP 6) quite some time. But I have
never tried to do a drag-drop of the nodes. The problem is that the TreeView
control is not scrolling the tree while a DragOver event. That means you can
only drop on what you can see.
Anyway, there are a couple of articles about this problem and they all for
VB5/6 and C++. They all recommend to do the following:
Use a timer to do API - SendMessage calls - Sendmessage hwnd, 277&, 0&(for
up) or 1&(for down), vbnull - I assume I can use OnTimer for Access. Before
the Sendmessage call a drophighligt is done.
In the DragOver event give the x,y for the droplight in the timer event and
enable the timer.
Still it doesn't work. No scrolling down, but I think up works.
I have a Treeview object in VBA called m_tree and is set to the Me.TreeView
which is the control itself. What I have noticed is that Me.TreeView has not
got any hwnd property while the m_tree has got. Is that correct?
Please - has anyone tried this? Are there any other solution?
Regards,
BAnders