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_setImageRightNormal(Item, ImagePath, [Width], [Height])


Description

Inserts an image and places it at the right of the menu item's caption.
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_setImageRightOver function.

Code sample
var id = dmbAPI_getItemByCaption("My Command");
dmbAPI_setImageRightNormal(id, "images/folder.gif");
This sample demonstrates how to assign an image to the right of a menu item's caption.

Parameters

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.