DHTML Menu Builder [DynAPI 1.1]
<developers_edition>
Saturday April 12, 2008

 

 

WARNING: The information on this documentation will change as the development on this version of DHTML Menu Builder progresses.
It is VERY important that you always refer to the information provided in this document prior to testing new versions of the DynAPI code.


Setting Styles Functions

void dmbAPI_setCaption(Item, Caption)


Description

Changes the caption of the specified item.

Code sample
var id = dmbAPI_getItemByCaption("My Command");
dmbAPI_setCaption(id, "New Caption");
This sample demonstrates how to change the caption of a menu item.
First we obtain a reference to the menu item whose caption we want to change and pass it to the dmbAPI_setCaption function along with the new caption.

Parameters

Item (objid) The toolbar item to be removed must be passed as a parameter to the function.

Item (string) The new caption of the item.