Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted on Nov 26, 2008 10:06
open dhtmlx forum
creating window at fixed x and y position..how to go for relative position

Heres the sample code for creating window at fixed x and y position..how to go for relative position

 

var dhxWins= new dhtmlXWindows();

dhxWins.setSkin("dhx_blue");

//creates new window for login page control

var win = dhxWins.createWindow('ab', 420, 420, 400, 250);

//dhxWins.enableAutoViewport(true);

//dhxWins.window('ab').setIcon("./codebase/img/NorthgateIcon.png");

dhxWins.window('ab').clearIcon();

dhxWins.window('ab').denyResize();

dhxWins.window('ab').denyMove();

dhxWins.window('ab').button("close").hide();

dhxWins.window('ab').button("park").hide();

dhxWins.window('ab').button("minmax1").hide();

win.setText("Web EIMS: Login");

//win.keepInViewport(true);

dhxWins.window('ab').attachObject("id1");

Answer posted by Support on Dec 03, 2008 07:37
What do you mean under relative position? Is it x% from left side and y% from top size?
For the moment windows support only absolute positioning.