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_setStyleFromItem(TrgItem, SrcItem) Description Copies the color and font styles from the SrcItem to the TrgItem. Parameters
Code sample
var c1 =
dmbAPI_getItemByCaption("Products");
var c2 =
dmbAPI_getItemByCaption("Support");
dmbAPI_setStyleFromItem(c2,
c1);
This sample demonstrates
how to change the style (color and font) from an item
based on the style of another item.
First we obtain the references to the two items and then we call the
dmbAPI_setStyleFromItem function to copy the style from the "Support" item
(c1) to the "Products" item (c2).
SrcItem
(objid)
The item that will provide the styles.
TrgItem
(objid)
The item that will receive the styles.