I need to create windows of fixed outer dimensions:
- how do I find out the inner dimensions? (the size available for content)
- how do I assign a resize handler just for this window? (not for every other dhxwindow)
Depending on what caused the window to open (which menu choice/button clicked) - I will be initializing the window and handling resizing the content within the window with different js objects which will be dynamically loaded in.
[code]var w1 = dhxWindowsObject.createWindow(‘blah1’, 0, 0, 100, 100);
var w2 = dhxWindowsObject.createWindow(‘blah2’, 10, 10, 200, 200);
var myObj1 = new mySpecialObject1(width, height); // how do I get width and height that are available to me?
w1.attachObject(myObj1.container); // myObj1.container is a div with ‘height:100%;width:100%;overflow:hidden’
// I need something like this…
w1.onResizeFinish = myObj1.resize; // resize is a function that will need to take (newHeight, newWidth) as params somehow.
var myObj2 = new aCompletelyDifferentObject(width, height); // again, need to get width and height from somewhere
w2.attachObject(myObj2.container);
w2.onResizeFinish = myObj2.resize; // as above[/code]
I need a general solution for this please, as I do not have the luxury of:
dhxWindowsObject.onResizeFinish = function (window) {
// window doesn't have a reference to my javascript object that it contains.
// so I dont know what kind of object it is or if it has its own resize handler
}