-crg
append(
(new linb.UI.SButton)
.setHost(host,"ctl_sbutton1")
.setLeft(110)
.setTop(280)
.setCaption("click me")
.onClick("_ctl_sbutton1_onclick")
);
append(
(new linb.UI.RadioBox)
.setHost(host,"ctl_radiobox1")
.setItems([{"id":"a", "caption":"item a"}, {"id":"b",
"caption":"item b"}])
.setLeft(70)
.setTop(120)
.setValue("a")
);
return children;
// ]]code created by jsLinb UI Builder
},
_ctl_sbutton1_onclick : function (profile, e, src, value) {
var rootNode = this.ctl_radiobox1.getRoot(),
itemNode = this.ctl_radiobox1.getSubNode('ITEM','b');
linb.message(_.serialize(itemNode.offset()));
linb.message(_.serialize(itemNode.offset(null,
rootNode)));
}
}
});