treeview question: recursive redrag&drop works, but not always.

Started by zhasm, December 31, 2007, 10:08:19 AM

Previous topic - Next topic

zhasm

i borrowed the code of treeview from http://www.phpmvc.net/asm/, and modified a little bit to implement the drag&drop functionality. now it can do the d&d recursively with all the children items, but sometimes it doesn't work. did i miss something?

note: the following two procs are added by me.


InsertSon proc htreeview,dest,src
                     ; to insert src as dest's child

IfIncest proc htreeview,son,father
                     ;to prevent the parent item inserted into its child item.
                     ;return 0 ok;
                     ;return 1 bad.

[attachment deleted by admin]