DHTMLX Docs & Samples Explorer

Effects

move effect ?
resize effect ?
Source
<link rel="stylesheet" type="text/css" href="../../codebase/dhtmlxwindows.css">
<link rel="stylesheet" type="text/css" href="../../codebase/skins/dhtmlxwindows_dhx_skyblue.css">
<script src="../../codebase/dhtmlxcommon.js"></script>
<script src="../../codebase/dhtmlxwindows.js"></script>
 
<script src="../../codebase/dhtmlxcontainer.js"></script>
 
<div>
<table>
    <tr>
        <td style="padding-right:10px;"><b>move effect</b></td>
        <td style="padding-right:10px;"><span id="ef_move">?</span></td>
        <td><input type="button" value="Enable" onclick="enable('move');"></td>
        <td><input type="button" value="Disable" onclick="disable('move');"></td>
        <td><input type="button" value="Is Enabled?" onclick="isEnabled('move');"></td>
    </tr>
    <tr>
        <td style="padding-right:10px;"><b>resize effect</b></td>
        <td style="padding-right:10px;"><span id="ef_resize">?</span></td>
        <td><input type="button" value="Enable" onclick="enable('resize');"></td>
        <td><input type="button" value="Disable" onclick="disable('resize');"></td>
        <td><input type="button" value="Is Enabled?" onclick="isEnabled('resize');"></td>
    </tr>
</table>
</div>
<div id="winVP" style="position: relative; height: 500px; border: #cecece 1px solid; margin: 10px;"></div>
<script>
var dhxWins,
objMove,
objRes,
w1,
w2;
function doOnLoad() {
    dhxWins = new dhtmlXWindows();
    dhxWins.enableAutoViewport(false);
    dhxWins.attachViewportTo("winVP");
    dhxWins.setImagePath("../../codebase/imgs/");
    objMove = document.getElementById("ef_move");
    objRes = document.getElementById("ef_resize");
    updateState();
    w1 = dhxWins.createWindow("w1", 20, 30, 320, 240);
    w2 = dhxWins.createWindow("w2", 50, 70, 320, 240);
}
function updateState() {
    objMove.innerHTML = (dhxWins.getEffect("move") ? "enabled": "disabled");
    objMove.style.color = (dhxWins.getEffect("move") ? "#009000": "#FF0000");
    objRes.innerHTML = (dhxWins.getEffect("resize") ? "enabled": "disabled");
    objRes.style.color = (dhxWins.getEffect("resize") ? "#009000": "#FF0000");
}
function enable(efName) {
    dhxWins.setEffect(efName, true);
    updateState();
}
function disable(efName) {
    dhxWins.setEffect(efName, false);
    updateState();
}
function isEnabled(efName) {
    alert(dhxWins.getEffect(efName));
}
</script>