Hi. I got a problem with one of my scripts. I have created a window with listbox and edittext. When user click on element in listbox it's full content should show in edittext. Under CS6 it works perfectly fine. However under CC the property of edittext did changed (I can later alert that content without issue) but the visual box of that edittext is still blank - no new text or anything in there.
ScriptUI has had better days, I'm also fighting redraw problems.
I haven't used multiline edittext in a while, so I don't know whether these solve your issue.
Eventually it is sufficient to just resize the field by a pixel, forth and back.
// force redraw - I still have no reliable way to display list item icons 😉
var drawEvent = ScriptUI.events.createEvent("UIEvent");
// bump the entire panel layout, note the additional bool
Sidenote: When you populate your changesList from the changesArray, you can add extra properties to each item, such as the .change .That would eliminate the loop, you just check changesList.selection for null and otherwise use changesList.selection.change . I'm not sure why your comparison of selection==n works at all - is your "ID frame" consecutive? Then you are actually comparing changesList.selection.text against String(n) ...
Also for the whole code here's the file that contain the drawing and handling aforementioned panel (drawing starts from load_changes function).
But still it looks likes it does not even enters the initial text.
A few details regarding the issue: although doubleclick updates the content of the frame in document, not on every occasion it can be done. So I need a way for the text from list of changes to be copyable, hence the edittext. If there is any other way to copy that text (except alert - it is a bit tiresome after a while) so it can be manually pasted inside a desired frame I would like to know it if the edittext seems to not be repaired.