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


Description

Inserts an image and places it at the right of the menu item's caption. The image will be visible when the mouse is moved over the menu item.
Make sure you first assign an image to the "Normal" state using the dmbAPI_setImageRightNormal function.

Code sample
var id = dmbAPI_getItemByCaption("My Command");
dmbAPI_setImageRightOver(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.