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_setImageLeftOver(Item,
ImagePath, [Width], [Height]) Description
Inserts an image and places it at the left of the menu item's caption. The
image will be visible when the mouse is moved over the menu item. Parameters
Make sure you first assign an image to the "Normal" state using the
dmbAPI_setImageLeftNormal function.
Code sample
var id =
dmbAPI_getItemByCaption("My
Command");
dmbAPI_setImageLeftOver(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.