Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Andy Chow on Jun 26, 2009 16:16
open dhtmlx forum
attach dhtmlxWindows to a <DIV> block

Hi,

How do I attach a dhtmlx window to a <DIV> block in the page? Also, I would like the window to become the same size of the <DIV> block.

Thanks.
Andy
Answer posted by Alex (support) on Jun 30, 2009 01:25

Hello,

it is possible to attach window viewport to div and moreover to deny window moving. The example is:

...

dhxWins.attachViewportTo(DIV_ID);

var win = dhxWins.createWindow("win",0,0,DIV_WIDTH,DIV_HEIGHT);

win.denyMove();
win.denyResize();

...