Triggering wxTREE_HITTEST_ABOVE

If you have the mouse captured then when you start getting events with a negative y coordinate then you know that it has been moved above the top of the widget.

···

On 1/19/10 8:35 AM, Philip Cavaco wrote:

Hello,

I am working on moving nodes in a TreeCtrl using wxpython 2.8.10.1.

When handling OnDragOver I perform a hittest the wxTREE_HITTEST_ABOVE
never gets triggered even when the cursor is at the top edge of the
tree window.

I have two questions then. How is the client area defined so that the
wxTREE_HITTEST_ABOVE flag will be triggered.

Can anyone suggest another method to make the tree ctrl scroll
automatically when the cursor is at the top of the tree window?
Similar to the behaviour in the CustomTreeCtrl example when the
EVT_TREE_BEGIN_DRAG event is activated.

--
Robin Dunn
Software Craftsman