## MenuStyle: setArrowImage

This methods set the images for items of Menus having sub Menus.

### Syntaxes

MenuStyle.setArrowImage(preloadedImage)

### Parameters

preloadedImage

A set of images preloaded with the DFrameAPI.preLoadImagesForButtonImage().

### Usage

The setArrowImage sets images on Buttons of Menus having a sub-level Menus.

The syntax of DFrameAPI. preLoadImagesForButtonImage is the following:

DFrameAPI. preLoadImagesForButtonImage (key, directoryPath,_
normalImg, rollImg, selectedImg, rollSelectedImg)

As there is no roll and rollSelected effects only two images are used for arrows and the syntax to be used is :

DFrameAPI. preLoadImagesForButtonImage (key, directoryPath, normalImg, '', selectedImg, '')

The normalImg is shown on normal mode. It is turned to the selectedImg if the sub-menu is expanded, only in tree Menus.

The position of the arrow image is arbitrary fixed to the right side of Buttons.

Demo

file: styleWindows.js, definition of menuStyle
See the source code