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_setColor(Item, NormalText, NormalBack, OverText, OverBack)


Description

Sets the color of a menu item.

Code sample
var id = dmbAPI_getItemByCaption("My Command");
dmbAPI_setColor(id, "#FFFFFF", "#000000", "#000000", "#FFFFFF");
This sample demonstrates how to change the colors 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_setColor function along with the new colors.

Parameters

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

NormalText (string) The text color in the form of "#RRGGBB" while the mouse is not over the menu item.

NormalBack (string) The background color in the form of "#RRGGBB" while the mouse is not over the menu item.

OverText (string) The text color in the form of "#RRGGBB" while the mouse is over the menu item.

OverBack (string) The background color in the form of "#RRGGBB" while the mouse is over the menu item.