Skip to main content
csm_phil
Brainiac
December 29, 2015
Question

InDesign CS5.5 Windows 8 Listbox text not shown

  • December 29, 2015
  • 3 replies
  • 647 views

Dear All,

Can you please look into my issue, the "Listbox" text not shown in the dialog. But its working in Windows 7 InDesign CS 5.5

System Details:

Windows 8.1 Pro

InDesign CS 5.5

var w = new Window ("dialog", "Select the Multiple Folders");

var f = w.graphics.font;

var arr=["12", "18", "16", "14", "13", "12"];

var list = w.add ("listbox", [0, 0, 200, 250], arr, {multiselect:true});

list.graphics.font=ScriptUI.newFont("Times",ScriptUI.FontStyle.REGULAR,f.size+1);

list.graphics.foregroundColor = w.graphics.newPen(list.graphics.PenType.SOLID_COLOR, [0.55, 0.33, 01, 1], 1);

w.add ("button", undefined, "OK", {name: "ok"});

w.show();

alert(list.selection);

This topic has been closed for replies.

3 replies

Adobe Expert
February 18, 2016

Phil,

If the solution in referred to by Jonny doesn't work, you could try this:

function refresh (control) {

  var wh = control.size;

  control.size = [1+wh[0], 1+wh[1]];

  control.size = [wh[0], wh[1]];

}

It solved a display problem that had been bothering me for a while. Only a couple of days ago I updated the ScriptUI for Dummies guide with an example of Marc Autret's sprite approach, and it occurred to me that that trick could be used to solve my problem with lists. This solution is more a heavy-handed kick in the butt, but it works well. I tried it because some (re)composition problems in InDesign can often be fixed by making a text frame a tiny but taller and immediately restoring its size.

Another solution was suggested by Vamitul not long ago: add an item and remove it again straight away.

Hope that either of these two methods of rattling a control fixes your problem.

Peter

Known Participant
February 17, 2016

I believe the solution in https://forums.adobe.com/message/7737466 might also apply to InDesign.

Brainiac
December 29, 2015

Hi,

It's a bug

ScriptUI and Windows 8

The only solution I know is to replace Listbox by dropdownlist ...

csm_phil
csm_philAuthor
Brainiac
December 29, 2015

Hi Ronald63,

I want to choose multiple text in the UI, but if I go with "dropdownlist" I can't select multiple text at a time.

Even though I changed the "checkbox" its fine, but the list items shown more than 100 entries in UI. That is the issue in "checkbox" options.

Any other idea!

thx,

Brainiac
December 29, 2015

No unfortunately no other idea, I have the same problem with a script