DHTMLX Docs & Samples Explorer

External Resize

Source
<link rel="stylesheet" type="text/css" href="../../codebase/dhtmlxlayout.css">
<link rel="stylesheet" type="text/css" href="../../codebase/skins/dhtmlxlayout_dhx_skyblue.css">
<script src="../../codebase/dhtmlxcommon.js"></script>
<script src="../../codebase/dhtmlxlayout.js"></script>
<link rel="stylesheet" type="text/css" href="../../../dhtmlxWindows/codebase/dhtmlxwindows.css">
<link rel="stylesheet" type="text/css" href="../../../dhtmlxWindows/codebase/skins/dhtmlxwindows_dhx_skyblue.css">
<script src="../../../dhtmlxWindows/codebase/dhtmlxwindows.js"></script>
<script src="../../../dhtmlxWindows/codebase/engine/dhtmlxwindows_enginedhx.js"></script>
<script src="../../codebase/dhtmlxcontainer.js"></script>
 
<div id="log" style="position: relative; margin-top: 470px; margin-left: 20px; width: 600px; height: 120px; border: #909090 1px solid; overflow-y: scroll; font-family: Tahoma; font-size: 11px;">
</div>
<script>
var dhxWins,
dhxLayout;
function doOnLoad() {
    dhxWins = new dhtmlXWindows();
    dhxWins.setImagePath("../../../dhtmlxWindows/codebase/imgs/");
    dhxLayout = new dhtmlXLayoutObject(dhxWins.createWindow("w1", 40, 340, 600, 400), "3L");
    dhxLayout.attachEvent("onResize", function() {
        document.getElementById("log").innerHTML += "<b>onResize</b> event called, layout was resized<br>";
    });
}
</script>