PDA

View Full Version : changing accordion child label


idpexec
11-03-2003, 04:32 PM
Hey there,

Anyone know if I can change the label for a child of an accordion after its been created? Do I have to destroy it and create it again?

Thanks,
Howie

Stimpson
11-05-2003, 05:13 PM
I think you have to destroy and recreate it, I cheked the class defenition and there is no method for reasiging labels.

Perhaps it's possible it inherited some method form a superclass however which does that, but I'm not sure. Check the label or view classes.

bytheway, have you tried to change the font size, Style and weight of the labels? According to the class defenition it should do it like this:

myAccordion.setStyle("fontSize", 8);

But it doesn't, changing the color that way does work however. hmmmm, perhaps a bug, or I'm missing something.

orensalsa
11-20-2004, 06:30 PM
it took a while to find it but i checked and it's working:

myAccordion.getHeaderAt(index).label="blabla";

what i still don't know is how to change a specific child header size

myAccordion.getHeaderAt(index).size=20;//this doesn't work