Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

adding items to multi-column listbox and its headers

New Here ,
Jan 11, 2010 Jan 11, 2010

How can I add items to multi-column listbox and its headers?

All I see in CS4 changes is how to change the number of columns and showing headers.

thank you.

TOPICS
Scripting
3.5K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Adobe Employee , Jan 21, 2010 Jan 21, 2010

Hi kingkai101,

To set the headers, set the ListBox's properties attribute columnTitles to an array of strings. To add a row, use the ListBox's add() method to add an "item" for the row's first column value, then subsequent columns are set using the subItems[] array element's text value.

I've attached a sample script. Hope it's informative.

Jeff

Translate
Adobe Employee ,
Jan 21, 2010 Jan 21, 2010

Hi kingkai101,

To set the headers, set the ListBox's properties attribute columnTitles to an array of strings. To add a row, use the ListBox's add() method to add an "item" for the row's first column value, then subsequent columns are set using the subItems[] array element's text value.

I've attached a sample script. Hope it's informative.

Jeff

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 22, 2010 Jan 22, 2010

Thanks Jeff.

I actually stumbled across Object Model Viewer in ExtendScript Toolkit 3.0 and it had all the info that I needed.

I decided to write (almost complete now) my own version of TextEditor when I didn't get any response from Peter regarding getting copy of script. he must be on some big project. do you know?

Anyways, thanks for info.

Jung Kim

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Jan 22, 2010 Jan 22, 2010

I don't know. Which Peter?

Jeff

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 22, 2010 Jan 22, 2010

sorry. I meant Paul Tuersley

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Jan 23, 2010 Jan 23, 2010
LATEST

I don't know.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines