Skip to main content
zeRafio
Inspiring
July 13, 2020
Answered

ScriptUI add icon to dialog window

  • July 13, 2020
  • 1 reply
  • 1218 views

I would like to add the InDesign icon to my scriptUI dialog.

Or at least, some default icon : info, caution…

Does anyone have a snippet of code for this?

var i = myAlert.add ("image", [0,0,32,32],isThereAPresetNameForAppOrDefaultIcon?);

Thanks.

This topic has been closed for replies.
Correct answer Peter Kahrel

In the index, look under "resize, images"

1 reply

Adobe Expert
July 14, 2020

Here's a guide that explains how to use icons and other images:

https://creativepro.com/files/kahrel/indesign/scriptui.html

zeRafio
zeRafioAuthor
Inspiring
July 14, 2020

Thanks Peter,

 

I was just reading your pdf when the notification for your answer came to me.

 

Following your advice, I have embeded the Indy icon in my jsx file.

It's fine exept for 2 things:

- the icon will be out to date soon or later (not really a problem…)

- if I embed a 64x64 pixels, how to display it at 48x48?

(Is there to method to resize it on display or do I have to embed it at the exact size?)

zeRafio
zeRafioAuthor
Inspiring
July 14, 2020

In the index, look under "resize, images"


How could I miss this?

Thank you again!

 

I have another question:

In your pdf, there's a paragraph on displaying a window on a dual monitor configuration.

There's a thing I dont understand: how do you know which screen is the main (currently focused)?