>No, my "buttons" are horizontal bars, stacked vertically with a few pixels of >space between them.
So you can change the layout of your buttons to use VerticalLayout, in your buttonbar custom skin: https://github.com/apache/flex-sdk/blob/develop/frameworks/projects/spark/src/spark/skins/spark/ButtonBarSkin.mxml You will also change the skin of each single ButtonBarButton in that same skin to be the horizontal bar. Everything can be done in pure mxml skins: You have plenty of mxml skins in the SDK to be inspired from (see below). Yours seems to be much simpler. https://github.com/apache/flex-sdk/blob/develop/frameworks/projects/spark/src/spark/skins/spark/ButtonBarMiddleButtonSkin.mxml Take the time to get familiar with Flex4 spark: (skins, states, decoupled layouts). It's really powerful, and will save you hours... Maurice -----Message d'origine----- De : Barry Gold [mailto:[email protected]] Envoyé : mercredi 26 février 2014 08:10 À : [email protected] Objet : Re: Skinnable custom component On 2/25/2014 3:21 PM, Mark Line wrote: > See here for a really basic example: > https://dl.dropboxusercontent.com/u/9000077/SparkCustomComponentExampl > e/SparkCustomComponentExample.html Could you provide the Flex source for that example? > Flex 4 brought a lot of improvements which means you can split the > logic (component class HBarButton) and the design (Skin class HBarButtonSkin). Okay, that sounds good. > You may find a buttonbar is already a good fit for your component though. > Maybe just use that with your own skin? No, my "buttons" are horizontal bars, stacked vertically with a few pixels of space between them.
