Yes its true that there are bugs from Bridge CS6 (and still on CC) using its scriptUI.
The framework name used on Bridge is 'Mondo'. On Photoshop CS6 is 'flex' and on ESTK is 'Win32'.
I really manage to create an work around on Bridge to get the image appear using an icon button and script UI (its your choice to use it as button or not...).
You can add this image to:
- an UI panel;
- to the navBar (fileSystem);
- to your TabbedPalette created using SDK CS6
// create a panel here:
var tbPanel = (...)
//
var fileFoto = File(Folder.desktop + '/temp/mytestfile.jpg');
if (fileFoto.exists) {
var myImg = ScriptUI.newImage(fileFoto);
tbPanel.photo = tbPanel.add('iconbutton', [0,0, undefined,undefined], myImg, {style:"toolbutton"});
tbPanel.photo.size = [44,50]; // this should be the size of the image. If it doesn't exists it will add space around the image
tbPanel.photo.onDraw = function () { // this is necessary, but if you use it many times, put this function outside and call it when needed.
with( this ) {
graphics.drawOSControl();
graphics.drawImage (image, 0, 0, image.size[0], image.size[1]);
}
}
}
Hope it helps.