ScriptUI question re listbox headers color
Hi there,
Working forward from the example below, taken from the ScriptUI documentation, I've created a dynamically generated dialog in InDesign CC2018.
The dialog works fine and displays the information as required.
I've tried a few things but as yet I've not been able to change the background colour of the header row.s there any way i can do this with a listbox?
I've found a few code examples using other methods, do I need to change the way the dialog is created to achieve this?
Thanks in advance.
var w = new Window ("dialog");
var myList = w.add ("listbox", undefined, " ",
{numberOfColumns: 3, showHeaders: true,
columnTitles: ["English", "French", "Dutch"]});
with (myList.add ("item", "One"))
{
subItems[0].text = "Un";
subItems[1].text = "Een";
}
with (myList.add ("item", "Two"))
{
subItems[0].text = "Deux";
subItems[1].text = "Twee";
}
with (myList.add ("item", "Three"))
{
subItems[0].text = "Trois";
subItems[1].text = "Drie";
}
w.show ();
