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 |
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
|
|
|
|
|
Drag & Drop , Sort, GetValue( x )
By: sapiency on Sun, 21 December 2008 00:13
|
|
|
Re: Drag & Drop , Sort, GetValue( x )
By: sapiency on Sun, 21 December 2008 14:04
|
|
|
Re: Drag & Drop , Sort, GetValue( x )
By: mirek on Mon, 22 December 2008 09:50
|
|
|
Re: Drag & Drop , Sort, GetValue( x )
By: sapiency on Sat, 27 December 2008 23:30
|
Goto Forum:
Current Time: Sat May 11 19:11:16 CEST 2024
Total time taken to generate the page: 0.01561 seconds
|