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
ButtonStyle.setCloseImage(preloadedImage)
preloadedImage
A set of images
preloaded with the DFrameAPI.preLoadImagesForButtonImage().
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/'.