Hello Tim,

Try the following code. I hope it will help you.

var layMain = new qx.ui.layout.HorizontalBoxLayout();
layMain.setLeft(10);
layMain.setTop(10);
layMain.setRight(10);
layMain.setBottom(10);
layMain.setSpacing(5);

// tree
var tree = new qx.ui.treevirtual.TreeVirtual("Tree");
tree.setWidth(400);
tree.setHeight("100%");
tree.setBorder("inset-thin");
tree.setColumnWidth(0, 400);
tree.setAlwaysShowOpenCloseSymbol(true);

// tree data model
var dataModel = tree.getDataModel();
var te1 = dataModel.addBranch(null, "Desktop", true);
var te;
dataModel.addBranch(te1, "Files", true);
te = dataModel.addBranch(te1, "Workspace", true);
dataModel.addLeaf(te, "Windows (C:)");
dataModel.addLeaf(te, "Documents (D:)");
dataModel.addBranch(te1, "Network", true);
te = dataModel.addBranch(te1, "Trash", true);
var te2 = dataModel.addBranch(null, "Inbox", true);
te = dataModel.addBranch(te2, "Spam", false);
for (var i = 1; i < 3000; i++)
{
  dataModel.addLeaf(te, "Spam Message #" + i);
}
dataModel.addBranch(te2, "Sent", true);
dataModel.addBranch(te2, "Trash", true);
dataModel.addBranch(te2, "Data", true);
dataModel.addBranch(te2, "Edit", true);
dataModel.setData();

// Content area
var layContent = new qx.ui.layout.CanvasLayout();
layContent.setBackgroundColor("#ffffff");
layContent.setBorder(new qx.ui.core.Border(1, "solid", "#0000ff"))
layContent.setOverflow("auto");
layContent.setWidth("1*");
layContent.setHeight("100%");

// Window 1
var wnd1 = new qx.ui.window.Window("Window 1");
wnd1.setLeft(10);
wnd1.setTop(10);
wnd1.setWidth(200);
wnd1.setHeight(150);
wnd1.setMinWidth(100);
wnd1.setMinHeight(50);
wnd1.show();

// Window 2
var wnd2 = new qx.ui.window.Window("Window 2");
wnd2.setLeft(300);
wnd2.setTop(10);
wnd2.setWidth(300);
wnd2.setHeight(200);
wnd2.setMinWidth(300);
wnd2.setMinHeight(200);
wnd2.show();

layContent.add(wnd1, wnd2);
layMain.add(tree, layContent);
layMain.addToDocument();


Best regards,
Denis

-- 
View this message in context: 
http://www.nabble.com/mdi-application-tp15085313p15092187.html
Sent from the qooxdoo-devel mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to