Mauricio, give the following a try: function drawButton() { this.graphics.drawImage(this.image,0,0); } var dlg = new Window ("dialog", "My dialog", [0,0,0,0]) dlg.size = [150,300] dlg.location = [600,260] var dlgborda = dlg.add('panel', [10,5,140,280], ''); var b1 = File (Folder.desktop + "/icon_fx.png"); var b1 = dlgborda.add("iconbutton", [0,0,0,0], ScriptUI.newImage(b1),) b1.location = [5, 8] b1.size = [50, 50] b1.onDraw = drawButton; var b2 = File (Folder.desktop + "/icon_fx.png"); var b2 = dlgborda.add("iconbutton", [0,0,0,0], ScriptUI.newImage(b2),) b2.location = [65,8] b2.size = [50, 50] b2.onDraw = drawButton; var b3 = File (Folder.desktop + "/icon_fx.png"); var b3 = dlgborda.add("iconbutton", [0,0,0,0], ScriptUI.newImage(b3),) b3.location = [65,62] b3.size = [50, 50] b3.onDraw = drawButton; var b4 = File (Folder.desktop + "/icon_fx.png"); var b4 = dlgborda.add("iconbutton", [0,0,0,0], ScriptUI.newImage(b4),) b4.location = [5,62] b4.size = [50, 50] b4.onDraw = drawButton; For some reason something weird happens in the second row in CC 2017, but with manual positioning I think you can workaround it. Hope this helps! Davide Barranca
... View more