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.