xui.UI.Block

Find code here before you post.

xui.UI.Block

Postby linb » Sat Apr 27, 2013 3:18 am

   
Class('App.xui_UI_Block', 'xui.Com',{
Instance:{
iniComponents:function(){
// [[code created by CrossUI RAD Tools
var host=this, children=[], append=function(child){children.push(child.get(0))};

append(
(new xui.UI.Block)
.setHost(host,"block3")
.setLeft(320)
.setTop(60)
.setBorder(true)
.setShadow(true)
.setHtml("shadow")
.setBorderType("none")
);

append(
(new xui.UI.Block)
.setHost(host,"block2")
.setLeft(170)
.setTop(60)
.setBorder(true)
.setHtml("border")
.setBorderType("none")
);

append(
(new xui.UI.Block)
.setHost(host,"block1")
.setLeft(50)
.setTop(60)
);

host.block1.append(
(new xui.UI.Button)
.setHost(host,"button21")
.setLeft(10)
.setTop(30)
.setWidth(80)
.setCaption("button21")
);

append(
(new xui.UI.Block)
.setHost(host,"block4")
.setLeft(470)
.setTop(60)
.setResizer(true)
.setHtml("resizer")
);

append(
(new xui.UI.Block)
.setHost(host,"block6")
.setLeft(60)
.setTop(230)
.setWidth(110)
.setHtml("borderType:inset")
.setBorderType("inset")
);

append(
(new xui.UI.Block)
.setHost(host,"block7")
.setLeft(180)
.setTop(230)
.setWidth(110)
.setHtml("borderType:outset")
);

append(
(new xui.UI.Block)
.setHost(host,"block8")
.setLeft(300)
.setTop(230)
.setWidth(110)
.setHtml("borderType:groove")
.setBorderType("groove")
);

append(
(new xui.UI.Block)
.setHost(host,"block9")
.setLeft(420)
.setTop(230)
.setWidth(110)
.setHtml("borderType:ridge")
.setBorderType("ridge")
);

append(
(new xui.UI.Block)
.setHost(host,"ctl_block18")
.setLeft(650)
.setTop(220)
.setIframeAutoLoad("http://www.xui.net")
.setBorderType("inset")
);

return children;
// ]]code created by CrossUI RAD Tools
}
}
});
   
linb
Site Admin
 
Posts: 102
Joined: Thu Apr 25, 2013 6:51 am

Return to CrossUI Code Snaps

Who is online

Users browsing this forum: Bing [Bot] and 1 guest

cron