Hey hey hey,

I had just such a question, so I spent a bit of time looking into how 
to access the child buttons of a button bar, and skin them uniquely, as 
opposed to simply skinning the "first" - "rest" - and "last".

I figured out how to do it, and ran a cool looking custom skin over the 
top of it, but I don't have the screenshot, or code handy (I'm at work).

I used an extended button bar to display the steps of a wizard process, 
with the current step of the wizard being visually referenced by the 
accompanying step name on the button bar. I had the entire skin 
customised - semi-3d looking square blocks of different colours with 
big numbers on each.

I'll post the code for it tomorrow, as well as a screenshot of it 
working.

It is possible, it's a little tricky as you have to access the the 
child a bit differently to how I expected.

Here's <a href="http://grae.halltech.com.au/media/uiruntimeskin.jpg
">an earlier example</a> I was working on, where I overrode the skins 
of various uicomponents at runtime with programmatically drawn skins.

<img src="http://grae.halltech.com.au/media/uiruntimeskin.jpg
"/>

and, in case the list strips out the html, here's a text link to it.

I'll post a useful, commented, and flexible example for you tomorrow 
night.


Grae Hall

Senior Designer
www.daemon.com.au


--- In flexcoders@yahoogroups.com, "lostinrecursion" <[EMAIL PROTECTED]> 
wrote:
>
> Hi all,
> 
> I looked through the docs and did a couple of Googles but couldn't
> find anything on this. Is it possible to style each individual button
> in a ToggleButtonBar?
> 
> For example, assigning a different background color to each one?
> 
> Thanks
> -Kenny
>







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to