<HTML>
<HEAD>
<LINK href="/ActiveWidgets/runtime/styles/aqua/aw.css" rel="stylesheet"></LINK>
<SCRIPT src="/ActiveWidgets/runtime/lib/aw.js"></SCRIPT>
<style>
.aw-system-control {position: absolute}
#obj0 { left: 20px; top: 30px; }
#obj1 { left: 20px; top: 50px; }
#obj2 { left: 20px; top: 70px; }
</style>
</head>
<BODY>
<script>
function test () {
return false;
}
var obj0 = new AW.UI.Label;
obj0.setId("obj0");
obj0.setControlText("Test Label 0 - seperate function call");
obj0.setEvent("oncontextmenu", test);
document.write(obj0);
var obj1 = new AW.UI.Label;
obj1.setId("obj1");
obj1.setControlText("Test Label 1 - direct disable");
obj1.setEvent("oncontextmenu", "return false;");
document.write(obj1);
var obj2 = new AW.UI.Label;
obj2.setId("obj2");
obj2.setControlText("Test Label 2 - included function call");
obj2.setEvent("oncontextmenu", function (event) { return false; });
document.write(obj2);
</script>
</body>
</html>
obj0.setEvent("oncontextmenu", test);
obj0.getContent("box/text").setEvent("oncontextmenu", test);
This topic is archived.