ButtonStyle: setCloseImage

This methods set the images for Buttons added to task Bars and task Menus. A mousedown on those images will close the DFrame associated to the Button

Demo

file: styleWindows.js, definition of buttonStyle
See the Style definitions

Syntaxe

ButtonStyle.setCloseImage(preloadedImage)

Parameters

preloadedImage

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

Comment

The 'Close' images will only appear on Buttons of task Bars and task Menus. Thus they can be set in the basic definition of Buttons and not only in the definitions of task Bars / Menus Buttons.

dFrameAPI provides one set of images in 'dFrame/dFrame/images/common/'.