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 » Like the new Drag and Drop TreeCtrl but...
Re: Like the new Drag and Drop TreeCtrl but... [message #11779 is a reply to message #11753] Tue, 25 September 2007 17:46 Go to previous messageGo to previous message
nixnixnix is currently offline  nixnixnix
Messages: 415
Registered: February 2007
Location: Kelowna, British Columbia
Senior Member
Ok, sounds fair.

However I have another question: why is it that the code inside Drag() never gets executed?

	void Drag()
	{
		if(tree.DoDragAndDrop(InternalClip(tree, "mytreedrag"),
		                       tree.GetDragSample()) == DND_MOVE)
		{
			PromptOK("hey");
			tree.RemoveSelection();
		}
	}


I added a PromptOK() as you can see above and it never pops up (I made sure to drag the selection to merely a different position on the same parent so there was no logical conflict).

Does that seems right to you?

I'm guessing that if that function did something it would copy the options across as its a MOVE rather than a copy right?

Nick

[Updated on: Tue, 25 September 2007 17:47]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: TreeCtrl Scroll triggers Parent Refresh
Next Topic: hierarchical tree data structure & binding to TreeCtrl
Goto Forum:
  


Current Time: Thu Aug 21 06:07:36 CEST 2025

Total time taken to generate the page: 0.07738 seconds