Skip to main content
Known Participant
July 25, 2011
Answered

ScriptUI Graphics - Listbox question

  • July 25, 2011
  • 2 replies
  • 1358 views

Is there a way to have the rows in a list box have alternating background color?

I've figured out how to change the background and font as a whole on the Listbox but changing it for every item you add into the Listbox is evading me.

Anyone know how?   Thanks in advance.

This topic has been closed for replies.
Correct answer Harbs.

You can't do this by default.

The only way (I can think of) to accomplish that would be to roll your own Listbox. It's possible, but challenging.

Marc Autret has done something of the sort...

Harbs

2 replies

Harbs.
Harbs.Correct answer
Legend
July 26, 2011

You can't do this by default.

The only way (I can think of) to accomplish that would be to roll your own Listbox. It's possible, but challenging.

Marc Autret has done something of the sort...

Harbs

Known Participant
July 26, 2011

damn, ok!

Well that solves that issue

Not a big deal, was just hoping it could be done to spruce up the UI I am building a little bit.  Not a major need for function


Thanks guys

Larry G. Schneider
Community Expert
Community Expert
July 26, 2011

Using what Peter has you could change the color of the text on alternating rows (at least it looked like it).

Larry G. Schneider
Community Expert
Community Expert
July 26, 2011

You might check here

www.kahrel.plus.com/indesign/scriptui-1-6.pdf

Known Participant
July 26, 2011

yeah I've been using that PDF as a my bible and even it doesnt have anything to do with alternating row colours.

only the entire listbox...

hmmm