Is it possible to
place a listview in a docklayout. I'm trying to make something similar to
the showcase example, but with auto-resize. It seems I can't use a
listview without absolute positioning.
Whenever I try to
use a listview with a docklayout, i get
ERROR: QxDockLayout: Could not layout
child [object QxListView] through layout handler:[object Error]:
_layoutChild
Is there an
alternative way to accomplish this?
Here's the code i
have so far, which draws the tree but no list.
<script
type="text/_javascript_">
window.application.main = function()
{
window.application.main = function()
{
var doc = this.getClientWindow().getClientDocument();
var dl1 = new
QxDockLayout;
dl1.setTop(2);
dl1.setLeft(2);
dl1.setRight(2);
dl1.setBottom(2);
dl1.setMinWidth(400);
dl1.setMinHeight(300);
dl1.setBorder(2, "outset");
dl1.setBackgroundColor("white");
dl1.setLeft(2);
dl1.setRight(2);
dl1.setBottom(2);
dl1.setMinWidth(400);
dl1.setMinHeight(300);
dl1.setBorder(2, "outset");
dl1.setBackgroundColor("white");
doc.add(dl1);
var ld =
[];
var lt = [ "Image", "Text", "PDF", "Illustration", "Document" ];
var lt = [ "Image", "Text", "PDF", "Illustration", "Document" ];
for (var i=0, t;
i<10; i++)
{
t=Math.round(Math.random()*4);
ld.push({ name : { text : "File " + i }, size : { text : Math.round(Math.random()*100) + "kb" }, type : { text : lt[t] }, modified : { text : "Nov " + Math.round(Math.random() * 30 + 1) + " 2005" }, rights: { text : "-rw-r--r--" }});
};
{
t=Math.round(Math.random()*4);
ld.push({ name : { text : "File " + i }, size : { text : Math.round(Math.random()*100) + "kb" }, type : { text : lt[t] }, modified : { text : "Nov " + Math.round(Math.random() * 30 + 1) + " 2005" }, rights: { text : "-rw-r--r--" }});
};
var lc
=
{
name : { label : "Name", width : 100, type : "text" },
size: { label : "Size", width : 50, type : "text", align : "right" },
type : { label : "Type", width : 80, type : "text" },
modified : { label : "Last Modified", width : 150, type : "text" },
rights : { label : "Rights", width: 80, type : "text" }
};
{
name : { label : "Name", width : 100, type : "text" },
size: { label : "Size", width : 50, type : "text", align : "right" },
type : { label : "Type", width : 80, type : "text" },
modified : { label : "Last Modified", width : 150, type : "text" },
rights : { label : "Rights", width: 80, type : "text" }
};
var lv = new
QxListView(ld, lc);
lv.setBorder(QxBorderObject.presets.shadow);
lv.setBackgroundColor("white");
lv.setLocation(0, 0);
lv.setRight(2);
lv.setBottom(2);
lv.setBackgroundColor("white");
lv.setLocation(0, 0);
lv.setRight(2);
lv.setBottom(2);
<#BUILDTREE>
with(tree)
{
setBackgroundColor(255);
setBorder(QxBorderObject.presets.inset);
setOverflow("scrollY");
setWidth("auto");
};
{
setBackgroundColor(255);
setBorder(QxBorderObject.presets.inset);
setOverflow("scrollY");
setWidth("auto");
};
dl1.addLeft(tree);
dl1.addRight(lv);
};
</script>
</script>
Jason Rucco
Lead Programmer Analyst
Guard Insurance Group
570-825-9900 x1544
[EMAIL PROTECTED]
****** CONFIDENTIALITY NOTICE ******
THIS E-MAIL, INCLUDING ANY ATTACHED FILES, MAY CONTAIN CONFIDENTIAL, PROPRIETARY AND/OR PRIVILEGED INFORMATION FOR THE SOLE USE OF THE INTENDED RECIPIENT(S). ANY REVIEW, USE, DISTRIBUTION, COPY OR DISCLOSURE BY OTHERS IS STRICTLY PROHIBITED. IF YOU ARE NOT THE INTENDED RECIPIENT (OR AUTHORIZED TO RECEIVE INFORMATION FOR THE RECIPIENT), PLEASE CONTACT THE SENDER AND DELETE ALL COPIES OF THIS MESSAGE.
THANK YOU.
_______________________________________________ Qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
