Strange line in attached toolbar when Using dhtmlxwindow

Any solution would be apreciated.

I’m using a dhtmlxwindow to display a chart, I’m also attaching a toolbar to display a data grid, as well as other types of charts.

The problem is that a horizontal line is displaying in the toolbar.

I’m using terrace style for the window and web style for the toolbar.

Heres a simple of my code .

function dobleclick() {
PopChart = new dhtmlXWindows();
PopChart.attachViewportTo(“winVP”);
PopChart.setSkin(“dhx_terrace”);

w1 = PopChart.createWindow(“w1”, mygrid.cells(mygrid.getSelectedId(), 20).getValue(), mygrid.cells(mygrid.getSelectedId(), 21).getValue(), mygrid.cells(mygrid.getSelectedId(), 22).getValue(), mygrid.cells(mygrid.getSelectedId(), 23).getValue());

PopTool = w1.attachToolbar();
PopTool.setIconsPath(“…/cgi-bin/images/”);
PopTool.setSkin(“dhx_web”);
PopTool.addSeparator(“sep1”, 1);
PopTool.addButton(“grid”, 2, “”,“chart_grid.ico”, “chart_grid1.ico”);
PopTool.addSeparator(“sep2”, 3);
PopTool.addButton(“linea”, 4, “”,“chart_linea.ico”, “chart_linea1.ico”);
PopTool.addSeparator(“sep3”, 5);
PopTool.addButton(“barra”, 6, “”,“chart_barra.ico”, “chart_barra1.ico”);
PopTool.addSeparator(“sep4”, 7);
PopTool.addButton(“pie”, 8, “”,“chart_pie.ico”, “chart_pie1.ico”);
PopTool.addSeparator(“sep5”, 9);
PopTool.addButton(“cerrar”, 10, “”,“chart_close.ico”, “chart_close1.ico”);
PopTool.addSeparator(“sep6”, 11);
PopTool.attachEvent(“onClick”, function(id){
if(id == “cerrar”) PopChart.unload();
else if(id == “grid”) window.close();
else if(id == “linea”) window.close();
else if(id == “barra”) window.close();
else if(id == “pie”) window.close();
});

w1.button(“close”).disable
w1.hideHeader();
w1.centerOnScreen();
w1.setModal(true);
w1.denyResize();

w1.attachURL(“http://www.portaldisal.com/cgi-bin/kioskos.exe?BI=9100&item=”+mygrid.cells(mygrid.getSelectedId(), 1).getValue() +“&chart=”+mygrid.cells(mygrid.getSelectedId(), 24).getValue()+“&@USRSESION@”, false );
}PopChart.unload();

function doOnUnload() {
if (PopChart != null && PopChart.unload != null) {
PopChart = w1 = null;
}
}

Thanks,

Fernando


Hi
If you use 4+ version, you are not avaliable to use different skins in one application.
As i see on the picture, you are trying to use “skybble” toolbar and grid with “terrace” window
It will be css conflict