View Full Version : Font on List-Component?
Pipan
10-10-2007, 12:12 PM
Ive been trying to chnage font on a List-component.
What ive tried is
myList.setStyle("textFormat", textformat2);
And for some reason this doesnt affect the Lists text...at all.
Ive also tried to set the style on the lists cellRender-property but also item and row. Nothing helps.
What am I doign wrong?
S.Zhurik
10-11-2007, 03:06 AM
Hey man, where did you find textFormat style property?
Try this for example:
myList.setStyle("fontSize", 20)
nikefido
10-11-2007, 01:44 PM
I believe you have to do styling and format AFTER you've put the object on the display list (so addChild(myList) THEN setStyle).
This caused some confusion for me at first.
Pipan
10-15-2007, 01:33 PM
Ive tried set it before addChild, after addChild and even after the dataprovider.
The text doesnt gets affected at all.
S.Zhurik: setStyle is inherited isnt it? And the .setStyle("fontSize"-property, can it be that youre confusing this with AS2-components?
nikefido: Did you actually succeed in formating an AS3 list-component? Can you show how you did?
(I have also created a copy of the List_Skin in the library and given it a new classname, How can i switch to this?)
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.