简体   繁体   中英

Edittext arrows [Indesign Script]

I am trying to create an edittext (Indesign scripting) with arrow buttons next to it to edit the value, like this one:

结果

Now is just a simple code to draw a edittext.

var w = new Window('palette', "Palette");

var editText = w.add("edittext", undefined, "123");

w.show();

Can anyone help please?

这是公开的对象类型列表。我不认为这个步进器编辑框(又名数字编辑框,又名轻推编辑框)已根据您的要求通过脚本公开。

I tried to find the UI control in the Object Model browser via the name(s) (and others that might be similar) that InDesign C++ SDK has for this sort of control but ScriptUI does not have that.

IMO, you will have to go with an alternate approach ie create buttons with similar appearance, place them close to the edit-box and react on the notifications that these buttons will send on change.

Other than that, May I request that you post this to Adobe InDesign Developer forum as well. Please log a bug on Adobe InDesign as well for details as well. That should get you the right approach if there is any as they also might be using internally.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM