Hi Amit, I'll have to extract the relevant code from my application (I currently use a class derived from TreeFolder and a somewhat complex code to dynamically create the Folders). I'll post the snippet on the mailing list asap.
Cheers, Fritz On Mon, 23 Mar 2009, Amit Rana wrote: > Hi Fritz, > > I am also trying to implement the drag-drop feature on tree but the > script hangs if I try in playground application. Can you please pass me > your code snippet ? > > BR > Amit > > Christian Schmidt wrote: >> Hi Fritz, >> >> could you please send a code snipped or an example, that would make it >> easier to help you by this problem. >> >> Thanks, >> Chris >> >> Fritz Zaucker schrieb: >> >>> Hi, >>> >>> I have started to implement drag/drop in my application for the >>> qx .ui.tree.TreeFolder()s of a qx.ui.tree.Tree(). I followed the >>> Drag/Drop-Demo for Lists in the demobrowser. I had to change the line >>> >>> orig.addBefore(sel[i], orig); >>> >>> to >>> >>> orig.getParent().addBefore(sel[i], orig); >>> >>> to drop the folder into the correct widget. >>> >>> The only problem I have is to figure out how to get the coordinates for the >>> drag/drop indicator right. The demo code has the line >>> >>> var orig = e.getOriginalTarget(); >>> var origCoords = orig.getContainerLocation(); >>> >>> but this places the indicator several folders below where it should. I guess >>> that this actually gives the lower end of the sub-tree in which the folder >>> lives. >>> >>> So my question is, which widget would I have to call getContainerLocation() >>> or some other method on to get the right coordinates? >>> >>> Thanks for your help, >>> Fritz >>> > > ------------------------------------------------------------------------------ > Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are > powering Web 2.0 with engaging, cross-platform capabilities. Quickly and > easily build your RIAs with Flex Builder, the Eclipse(TM)based development > software that enables intelligent coding and step-through debugging. > Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com > _______________________________________________ > qooxdoo-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel > > -- Oetiker+Partner AG tel: +41 62 775 9903 (direct) Fritz Zaucker +41 62 775 9900 (switch board) Aarweg 15 +41 79 675 0630 (mobile) CH-4600 Olten fax: +41 62 775 9905 Schweiz web: www.oetiker.ch ------------------------------------------------------------------------------ Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
