Skip to main content
deckarduk
Inspiring
May 5, 2023
Answered

ListBox ScriptUI question...

  • May 5, 2023
  • 1 reply
  • 547 views

Hi there,

Please can someone help.

I've created an ListBox that works fine and displays the list passed to it.

I'm trying to change the row colour but haven't succeeded yet.

Here's a snippet of the code:

var xxx;
var y = namesArr[k].split(" - ")

        var xxx = myList.add ("item", (k+1))
            {
                xxx.subItems[0].text = y[0];
                xxx.subItems[1].text = y[1];
                xxx.subItems[2].text = y[2];
                xxx.subItems[3].text = y[3];
                xxx.subItems[4].text = y[4];        
            }
        xxx.graphics.backgroundColor = xxx.graphics.newBrush (xxx.graphics.BrushType.SOLID_COLOR,[0.37, 0.37, 0.37],1);
}

Please can someone point me in the right directon.

Thank you.

This topic has been closed for replies.
Correct answer deckarduk

Thanks for the help Manan.

I did find something from Marc Autret which looked promising.

1 reply

Community Expert
May 5, 2023
deckarduk
deckardukAuthorCorrect answer
Inspiring
May 5, 2023

Thanks for the help Manan.

I did find something from Marc Autret which looked promising.