# Changing ListBox text styles

**URL:** <https://forum.kirupa.com/t/changing-listbox-text-styles/17511>\
**Category:** flash\
**Created:** [April 6, 2003, 6:18am UTC](https://forum.kirupa.com/t/changing-listbox-text-styles/17511 "2003-04-06T06:18:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Macette](https://avatars.discourse-cdn.com/v4/letter/m/b38774/32.png) [@Macette](https://forum.kirupa.com/u/Macette)\
**Post date:** [April 6, 2003, 6:18am UTC](https://forum.kirupa.com/t/changing-listbox-text-styles/17511/1 "2003-04-06T06:18:24Z")

</div>

Hi… very grateful for the listbox tutorial! It’s been very helpful.

I have a question: is it possible to change the size, colour, font etc of the Label values in a listbox? My listbox looks yukky, and I want to change it.

Thanks in advance for your help.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 6, 2003, 2:42pm UTC](https://forum.kirupa.com/t/changing-listbox-text-styles/17511/2 "2003-04-06T14:42:02Z")

</div>

you can change the look and feel of your listbox. Just go inside the component itself and change the skins…

Details are in the help section. It’s not difficult. If you get totally stuck, let us know.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 7, 2003, 12:09am UTC](https://forum.kirupa.com/t/changing-listbox-text-styles/17511/3 "2003-04-07T00:09:20Z")

</div>

Thanks - that wasn’t quite what I was asking (I was a bit unclear), but I solved the problem anyway: although I knew how to change the skins, I wasn’t sure how to change the text styles (they don’t appear under skins, as far as I can see). But what I worked out is that you can use setStyleProperty to influence text (just add it to your actionscript):

listBox.setStyleProperty(“textFont”, “Arial”);  
listBox.setStyleProperty(“textColor”, “0xFFFFFF”);  
listBox.setStyleProperty(“textSize”, “11”);

Hope this is useful for some other people!

---

<div class="post-metadata">

**Author:** ![Maxim](https://avatars.discourse-cdn.com/v4/letter/m/ba9def/32.png) [@Maxim](https://forum.kirupa.com/u/Maxim)\
**Post date:** [March 31, 2006, 8:20pm UTC](https://forum.kirupa.com/t/changing-listbox-text-styles/17511/4 "2006-03-31T20:20:29Z")

</div>

where about to you enter these actionscript lines?
