Copy link to clipboard
Copied
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.
1 Correct answer
In the index, look under "resize, images"
Copy link to clipboard
Copied
Here's a guide that explains how to use icons and other images:
Copy link to clipboard
Copied
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?)
Copy link to clipboard
Copied
In the index, look under "resize, images"
Copy link to clipboard
Copied
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)?
Copy link to clipboard
Copied
I have always assumed that the left one is the main screen, but the right one might be your main screen just as happily. As to focus, I don't think you can determine which screen is focussed. InDesign has very funny ideas on focus.
Copy link to clipboard
Copied
I think I've find a solution (at least for me):
I'm getting the indy document left bound to determine on which display it stands.
Then I can use the screen coordinates to place my Alert.
Thanks for your help!

