Please don't quote me on this, but I'm not sure if D&D was supported for the
TreeView in version .6.5, perhaps someone else can add to this. The control
needs to support the drag & drop events in order to be able to make it
happen. You could check out the current demo of the TreeView and see the
code that handles D&D and try it on your code. It will either work or give
you errors telling you why it didn't work. Using the current demos on-line,
I was able to add D&D to a project I am working on (non Delphi for PHP).
Jim
On 4/9/07, FrozenDice <[EMAIL PROTECTED]> wrote:
Thanks Jim, I'm just wondering now how to do a drag and drop with a
TreeView, meaning I want to be able to move a branch, or a single item and
drop it somewhere else on the tree. Can anyone tell me how I could do this?
- Dan
On 4/5/07, Jim Hunter <[EMAIL PROTECTED]> wrote:
>
> Not all of the controls in Delphi 4 PHP are qooxdoo controls. Many are.
> It uses qooxdoo .6.5 as the base classes for the VCL. You can create any of
> the qooxdoo .6.5 controls in Delphi 4 PHP, but for the ones that don't have
> entries on the pallet you must create them in code. I had a project where I
> created an array of Atoms on top of a bitmap.
> And not all of the qooxdoo control properties are exposed in the IDE but
> can be manipulated in code.
>
> Jim Hunter
> D4PHP.ORG
>
>
>
> On 4/5/07, FrozenDice <[EMAIL PROTECTED]> wrote:
>
> > Can anyone explain the difference between Qooxdoo widgets and the
> > versions of them that are used in Delphi4PHP? I know the two businesses
> > worked together, and that they are actually qooxdoo widgets and don't just
> > look alike. Here's the code delphi generated for a Tree with elements one,
> > two, three, and subone.
> >
> > <html >
> > <head>
> > <script
> > type="text/javascript" src="vcl-bin/js/common.js"></script
> > >
> > <title>Unit11</title>
> > <
> >
> > meta http-equiv=
> > "Content-Type" content="text/html; charset=iso-8859-1" />
> >
> > <script type="text/javascript"
> >
> > >
> > <!--
> > function Unit11JSLoad(event)
> > {
> >
> > var event = event ||
> > window.event;
> > var params=null;
> > //Add your javascript code here
> >
> >
> >
> > }
> >
> >
> > function Unit11JSUnload(event)
> > {
> >
> > var event = event || window.event;
> > var params=null;
> >
> > //Add your javascript code here
> >
> >
> > }
> >
> > -->
> > </
> >
> > script>
> > <script
> > type="text/javascript" src="vcl-bin/qooxdoo/framework/script/qx.js"></
> > script>
> > <script type="text/javascript">
> > qx.log.Logger.ROOT_LOGGER.setMinLevel(qx.log.Logger.LEVEL_FATAL
> > );
> > qx.manager.object.AliasManager.getInstance
> >
> > ().add("static", "vcl-bin/qooxdoo/framework/resource/static/");
> > qx.manager.object.AliasManager.getInstance().add("widget",
"vcl-bin/qooxdoo/framework/resource/widget/windows/");
> >
> >
> >
> > qx.manager.object.AliasManager.getInstance().add("icon",
"vcl-bin/qooxdoo/framework/resource/icon/VistaInspirate/");
> > </script>
> > </
> > head>
> >
> > <body style=" margin-left: 0px; margin-top: 0px; margin-right: 0px;
margin-bottom: 0px; "
> > onload="return Unit11JSLoad(event)"
> >
> > onunload="return Unit11JSUnload(event)"
> > >
> > <form style="margin-bottom: 0" id=
> > "Unit11" name="Unit11" method="post"
> > action="/unit10.php">
> > <script type=
> > "text/javascript">
> > var d = qx.ui.core.ClientDocument.getInstance();
> > d.setOverflow("scrollY");
> > d.setBackgroundColor(null);
> > </script>
> >
> >
> > <table width="800" style="height:600px"
> > border="0" cellpadding="0"
> >
> >
> > cellspacing="0" ><tr><td valign=
> > "top">
> > <div id="TreeView1_outer" style=
> > "Z-INDEX: 0; LEFT: 6px; WIDTH: 378px; POSITION: absolute; TOP: 76px; HEIGHT:
292px">
> > <input type="hidden"
> > id="TreeView1_state"
> >
> > name="TreeView1_state"
> > value="" />
> > <div id=
> > "TreeView1"></div>
> > <script type="text/javascript"
> > >
> > var d = qx.ui.core.ClientDocument.getInstance();
> > var inline_div = new qx.ui.basic.Inline("TreeView1");
> > inline_div.setHeight("auto");
> > inline_div.setWidth("auto");
> >
> >
> >
> >
> > var trsroot =
qx.ui.treefullcontrol.TreeRowStructure.getInstance().standard("Items");
> > var TreeView1 = new qx.ui.treefullcontrol.Tree(trsroot);
> >
> > var trs = null;
> > trs = qx.ui.treefullcontrol.TreeRowStructure.getInstance
> >
> >
> > ().standard("one");
> > var p_0 = new qx.ui.treefullcontrol.TreeFolder(trs);
> > p_0.tag=0;
> > TreeView1.add(p_0);
> >
> > trs =
qx.ui.treefullcontrol.TreeRowStructure.getInstance().standard("sub1");
> >
> >
> >
> > var p_1 = new qx.ui.treefullcontrol.TreeFile(trs);
> > p_1.tag=0;
> > p_0.add(p_1);
> >
> > trs =
qx.ui.treefullcontrol.TreeRowStructure.getInstance().standard("two");
> > var p_0 = new qx.ui.treefullcontrol.TreeFile
> >
> >
> > (trs);
> > p_0.tag=0;
> > TreeView1.add(p_0);
> >
> > trs =
qx.ui.treefullcontrol.TreeRowStructure.getInstance().standard("three");
> > var p_0 = new qx.ui.treefullcontrol.TreeFile(trs);
> > p_0.tag=0;
> >
> >
> >
> > TreeView1.add(p_0);
> >
> > TreeView1.setUseDoubleClick(true);
> > TreeView1.setUseTreeLines(true);
> > TreeView1.setHideNode(false);
> > TreeView1.setBorder(qx.renderer.border.BorderPresets.getInstance().inset);
> >
> >
> >
> > TreeView1.setBackgroundColor("white");
> > TreeView1.setLeft(0);
> > TreeView1.setTop(0);
> > TreeView1.setOpen(1);
> > TreeView1.setOverflow("scroll");
> > TreeView1.setWidth
> >
> >
> > (378);
> > TreeView1.setHeight(291);
> >
> > TreeView1.setEnabled(true);
> > TreeView1.setVisibility(true);
> > d.add(inline_div);
> > inline_div.add(TreeView1);
> > </script>
> >
> >
> > </div>
> > </td></tr></table>
> > </form></
> > body>
> > </html>
> > <!-- Unit11 end -->
> >
> >
> >
> >
> > -------------------------------------------------------------------------
> > Take Surveys. Earn Cash. Influence the Future of IT
> > Join SourceForge.net's Techsay panel and you'll get the chance to
> > share your
> > opinions on IT & business topics through brief surveys-and earn cash
> >
> > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > _______________________________________________
> > qooxdoo-devel mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
> >
> >
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys-and earn cash
>
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
>
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel