<html>
<head>
<script src="activewidgets/runtime/lib/aw.js"></script>
<link href="activewidgets/runtime/styles/xp/aw.css" rel="stylesheet"></link>
</head>
<body>
<script>
var obj = new AW.Grid.Extended;
var myColumns = [
"A", "B", "C", "D", "E", "F"
];
obj.setCellText(function(i, j){return j + "-" + i});
obj.setHeaderText(myColumns);
obj.setRowCount(10);
obj.setColumnCount(6);
var toolbar = new AW.HTML.DIV;
toolbar.setId("toolbar");
var temp = new AW.HTML.SPAN;
var link = new AW.UI.Link;
link.setControlText("the link");
link.setControlLink("http://www.google.com");
temp.setContent("theSpan", link);
toolbar.setContent("temp", temp);
obj.defineTemplate("bottomLine", toolbar);
obj.setLayoutTemplate(new AW.Panels.Horizontal);
obj.setPanelTemplate(function(i){
switch(i){
case 1: return this.getScrollTemplate();
case 2: return this.getBottomLineTemplate();
}
});
obj.setPanelHeight(23, 2); //bottom line
document.write(obj);
</script>
</body>
</html>
toolbar.setContent("temp", temp);
toolbar.setContent("temp", function(){return temp});
This topic is archived.