HOW? Custom cursors in TreeView drag/drop

L

Lee Gillie

My treeview is populated with different icons for various items in the
structure. I would like to use cursors which look similar to these
when dragging these nodes around. Also, I allow files from explorer
to be dropped on the treeview for some nodes. I would like to use a
cursor that looks like what the explorer does when dragging files over
valid drop locations.

I have found lore about using the GiveFeedback event on the TreeView
to change Cursor.Current, but I have yet to be able to get this event
to fire for me. Is there something special needed to enable it? Not
all nodes are valid drop targets either. Even if this fired for me, I
note that GiveFeedback does not have the kind of information as in the
DragOver event, to determine the source object, and current possition
to determine if the not-allowed cursor should be shown.

I keep hammering on this, but continue to end up with "dragon
droppings". Any hints would be greatly appreciated.

Best regards - Lee Gillie, Spokane WA
 
L

Lee Gillie

I am just not getting the GiveFeedback event, and can not seem to
enable it. I suspect there must be some bugs in the TreeView control.

- Lee
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top