Bigger icons

It is possible to set icon size in toolbar? 32,48,64 pixel?

and item height?

hello,

here is a demo for 48x48 icons only for items (w/o text)
if you need more items to support 48x48 please provide details
also zip contain text file with info how to create custom toolbar
for different icons like 32x32, 64x64, etc
toolbar_icons_48px.zip (36 KB)

Thank you

Hello,

I want to do the same for 24x24 icons but on the skin “dhx_blue”. I’m not sure about the changes to do.

Is it simplified into the version 3.0 of dhtmlXToolbar ?

Thanks.

Hello,

unfortunately, 3.0 version won’t provide a public method to change icon size.

Hello,

is there a solution to use bigger icons with attachToolbar() function.
Unfortunately in this using the height of the background image will not adjust to the new height.

	var wnd = dhxWins.createWindow("loginWnd", 0, 0, 840, 800);
	var layot = wnd.attachLayout("3L");
	var toolbar = layout.cells("b").attachToolbar();
	toolbar.setIconsPath("imgs/");
	toolbar.loadXML("dhxtoolbar.xml?etc="+new Date().getTime());

Thx!!

Regards
Dirk

Hello,

toolbar height is hardcoded in the dhtmlxcontainer.js:

document.getElementById(this.vs[this.av].toolbarId).style.height = “29px”;

You may redefine height there or set height after attachToolbar() call:

var toolbar = layout.cells(“b”).attachToolbar();
toolbar.cont.style.height = “57px”;