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 & Drop , Sort, GetValue( x )
Re: Drag & Drop , Sort, GetValue( x ) [message #19645 is a reply to message #19594] Sat, 27 December 2008 23:30 Go to previous message
sapiency is currently offline  sapiency
Messages: 56
Registered: September 2008
Member
hi Mirek,

I've created an example which work almost as it should.

actually you can create and delete (right button on element / group) elements and groups, move elements to groups, sort them manually.

If you look at line 90 of main.cpp you find
&& _isMovedElement ==false


without this, the callback 'DropInsert' is called twice and two elements are moved to the new place ...

I tried to find out which Method I have to call so that the callback will be called only once. In the example of DND
InsertDrop(parent, ii, d);

moves the Element to the new place in the tree. But I didn't found the reason why the callback is called twice without this line of code ...

regards

reinhard
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Optional highlighting of focused node's control along with value
Next Topic: gui crashes.
Goto Forum:
  


Current Time: Sat May 11 19:11:16 CEST 2024

Total time taken to generate the page: 0.01561 seconds