Home » U++ Library support » TreeCtrl » Drag and Drop for TreeCtrl
Re: Drag and Drop for TreeCtrl [message #9285 is a reply to message #9284] |
Wed, 25 April 2007 19:29  |
nixnixnix
Messages: 415 Registered: February 2007 Location: Kelowna, British Columbia
|
Senior Member |
|
|
Thanks James,
That does the trick nicely . I know I could have done it using LeftDown, MouseMove, and LeftUp but that would have spread code out through other modules in other places and I wanted to keep this contained so for me the RectTracker is a good way to go. Also, I need a custom node for other reasons as I use it to keep track of and edit data objects in my app.
I would be interested to see your solution though.
The bottom line in my LeftDown function should of course be just after "if(id<=0)" and before the "return" near the top of the function so that the default event processing can take place for opening and closing nodes etc.
Phew! That took me way longer than it should but learnt lots about UPP 
Nick
[Updated on: Wed, 25 April 2007 19:50] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Thu Sep 04 02:54:06 CEST 2025
Total time taken to generate the page: 0.05959 seconds
|