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_setImageLeftNormal(Item,
ImagePath, [Width], [Height]) Description
Inserts an image and places it at the left of the menu item's caption. Parameters
This function will also set the same image in the over state of the menu item.
To change the the over state image use the
dmbAPI_setImageLeftOver function.
Code sample
var id =
dmbAPI_getItemByCaption("My
Command");
dmbAPI_setImageLeftNormal(id,
"images/folder.gif");
This sample demonstrates
how to assign an image to the left of a menu item's
caption.
Item (objid) The toolbar item or command that will receive the image. ImagePath (string) The path to the image file. Width (integer) (Optional) The width of the image. If not use, the true width of the image will be used. Height (integer) (Optional) The height of the image. If not use, the true height of the image will be used.