Layout - div in setText

HI,

I’m working with conversion from 3.6 to 4.0 and have encounter an issue I have tried in vain to solve.

Look at this code snippet, works in 3.6:

wins = new dhtmlXWindows();
win = wins.createWindow(“C2win”, 0, 0, 1024, 550);
win.maximize();
win.hideHeader();

//…layout
dhxLayout = new dhtmlXLayoutObject(win, “2U”, “dhx_skyblue”);
dhxLayout.setAutoSize(“a;b”, “a;b”);
dhxLayout.cells(“a”).setText(“

”);
dhxLayout.cells(“b”).setText(“
”);
dhxLayout.cells(“b”).collapse();
dhxLayout.attachEvent(“onCollapse”, this.C2Kollapsat);

A1 = document.getElementById(“toolMAIN”);
A1.style.position = “absolute”;
A1.style.left = “0px”;
A1.style.top = “-7px”;
A1.style.width = “900px”;
A1.style.fontWeight = “bold”;
A1.style.color = “#ff0000”;
A1.style.cursor = “pointer”;

MAINtoolbar = new dhtmlXToolbarObject(“toolMAIN”);
//MAINtoolbar.setIconsPath(“v20js/dhtmlxToolbar/samples/common/imgs/”);
MAINtoolbar.addButtonTwoState(“KARTA”, 0, “KARTA”, null, null);

I am placing a div in layout.cells.setText() and placing a toolbar in that div.
Does not work in 4.0.
How to get around that?

Hi
Such custom feature is not supported.

Hi,

I got the same effect by doing hideHeader and attachToolbar.
I’m happy!

/BJDA