Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to previous message
nixnixnix is currently offline  nixnixnix
Messages: 415
Registered: February 2007
Location: Kelowna, British Columbia
Senior Member
Thanks James,

That does the trick nicely Smile. 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 Very Happy

Nick

[Updated on: Wed, 25 April 2007 19:50]

Report message to a moderator

 
Read Message
Read Message
Read Message
Previous Topic: TreeCtrl - DeepClose not works
Next Topic: Serialize
Goto Forum:
  


Current Time: Thu Sep 04 02:54:06 CEST 2025

Total time taken to generate the page: 0.05959 seconds