Skip to main content
Participating Frequently
March 24, 2024
Answered

Drowpdownlist height

  • March 24, 2024
  • 1 reply
  • 710 views

Why when creating a Dropdownlist with many items, I can't see them all? How can I add a scrollbar or increase the size of the dropdown list?

This topic has been closed for replies.
Correct answer CarlosCanto

Windows 10


how's your screen resolution?

 

mine

 

1 reply

CarlosCanto
Community Expert
Community Expert
March 24, 2024

can you post your code?

Participating Frequently
March 24, 2024
var doc = app.activeDocument;
var dialog = new Window("dialog", "Dropdownlist com 10 Itens");

var dropdownlist = dialog.add("dropdownlist", undefined, ["Item 1", "Item 2", "Item 3", "Item 4", "Item 5", "Item 6", "Item 7", "Item 8", "Item 9", "Item 10"]);
dropdownlist.selection = 0;

var okButton = dialog.add("button", undefined, "OK");
okButton.onClick = function() {
  alert("Você selecionou: " + dropdownlist.selection.text);
  dialog.close();
};

dialog.show();

 

 

CarlosCanto
Community Expert
CarlosCantoCommunity ExpertCorrect answer
Community Expert
March 25, 2024

Windows 10


how's your screen resolution?

 

mine