How do I set the style for the accordian header when the application loads. Tried defining it appinit - but since the component is not created it does not set the values.
 
thanks,
rgds,
navita
-----Original Message-----
From: Matthew Horn [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 29, 2004 11:01 AM
To: '[email protected]'
Cc: 'jeff tapper'
Subject: RE: [flexcoders] Changing background color of AccordionHeader thr ough code

Jeff,

You can't set the backgroundColor style on Accordion Header objects, but you
canset other style properties, such as fontSize, as the following example
shows:

                  var f2 = myAccordion.getHeaderAt(1);
                  f2.setStyle("themeColor","haloBlue");
                  f2.setStyle("fontSize",30);

By using the getHeaderAt() method to get individual header objects, you can
change the appearance of one or more headers without changing them all.
Kinda useful! I'll try to get a complete list of styles that are supported
and post them here.

It seems to me that the style closest to what you are trying to do is
themeColor, from which you can choose haloGreen (default), haloBlue, and
haloOrange as values.

The Accordion Header object is currently undocumented, so I will follow up
and see if it was meant to be exposed through the getHeaderAt() method, and
if so, then we'll doc it!

Matthew Horn
Sr. Technical Writer
Macromedia

> -----Original Message-----
> From: jeff tapper [mailto:[EMAIL PROTECTED]
> Sent: Monday, April 26, 2004 11:01 AM
> To: [email protected]
> Subject: [flexcoders] Changing background color of AccordionHeader
> through code
>
>
> Hey folks -
>
> Does anyone know how to specify the background color of one accordion
> header in code?  I'm trying to avoid the hassle of creating a custom
> skin.  I've been trying something like
>
> asAccordion.getHeaderAt(1).setStyle("backgroundColor",0xE5E5CD );
>
> with no luck.  Can someone point me in the right direction on this?
>
>

Reply via email to