Copy link to clipboard
Copied
staticTexts.add({ staticLabel: "Doesn't the text inside automatically wrap to new lines?" });
Doesn't the text inside automatically wrap to new lines? Setting the width doesn't seem to work either.
I think I've seen people use jion(\n) to control line breaks.
Several times people have pointed out to you that you should use the multiLine property.
See https://creativepro.com/files/kahrel/indesign/scriptui.html for details and examples.
Adding `mutiline:true` directly to my original code didn't work.
That’s because the DialogRow or DialogColumn StaticText class does not have a mutiline property
https://www.indesignjs.de/extendscriptAPI/indesign-latest/#StaticText.html#d1e593633
You probably can do it with the ScriptUI Classes—don’t confuse the ScriptUI Classes with the InDesign Dialog Class they are not the same. ScriptUI is here:
https://www.indesignjs.de/extendscriptAPI/indesign-latest/#WindowSUI.html
Copy link to clipboard
Copied
Several times people have pointed out to you that you should use the multiLine property.
See https://creativepro.com/files/kahrel/indesign/scriptui.html for details and examples.
Copy link to clipboard
Copied
Thank you.
Adding `mutiline:true` directly to my original code didn't work.
It seems I need to rebuild the dialog from scratch.
I'll look into it later.
Copy link to clipboard
Copied
Adding `mutiline:true` directly to my original code didn't work.
That’s because the DialogRow or DialogColumn StaticText class does not have a mutiline property
https://www.indesignjs.de/extendscriptAPI/indesign-latest/#StaticText.html#d1e593633
You probably can do it with the ScriptUI Classes—don’t confuse the ScriptUI Classes with the InDesign Dialog Class they are not the same. ScriptUI is here:
https://www.indesignjs.de/extendscriptAPI/indesign-latest/#WindowSUI.html
Find more inspiration, events, and resources on the new Adobe Community
Explore Now