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