Manipulate Toolbars

Hello,

I have many toolbars on different windows.

All toolbars have been created with this syntax:

/Fonction chargeant les toolbars des fenêtres/
function chargeDhtmlxToolbar(windowType, divId)
{
toolbarApp = new dhtmlXToolbarObject(“toolbar”+divId);

}

Now I want to manipulate a toolbar in particular.

How to Select the toolbar and then do this part:

. showItem (“saveClient”);

Thank you for your help.

Hello,

toolbarApp is toolbar object. You may put into an array or an object. And then you may get toolbar from this array:

var toolbars = {}

function chargeDhtmlxToolbar(windowType, divId)
{
toolbarApp = new dhtmlXToolbarObject(“toolbar”+divId);

toolbars[windowType] = toolbarApp;
}