我有以下切换按钮栏:
<mx:ToggleButtonBar buttonWidth="85" height="45" id="menuBar" width="595" x="0" y="23">
<mx:dataProvider>
<mx:Object data="{LocalConfig.CONNECTION_STATE}" icon="@Embed(source='resources/images/Bonjour.png')" label=" "/>
<mx:Object data="{LocalConfig.LANGUAGES_STATE}" icon="@Embed(source='resources/images/languages.png')" label=" "/>
<mx:Object data="{LocalConfig.TAGGING_STATE}" icon="@Embed(source='resources/images/tag.png')" label=" "/>
<mx:Object data="{LocalConfig.FONT_MAPPING_STATE}" icon="@Embed(source='resources/images/FontPanel.png')" label=" "/>
<mx:Object data="{LocalConfig.ERROR_CHECKING_STATE}" icon="@Embed(source='resources/images/Clear-Green-Button.png')" label=" "/>
<mx:Object data="{LocalConfig.USERS_STATE}" icon="@Embed(source='resources/images/UserAccounts.png')" label=" "/>
<mx:Object data="{LocalConfig.UPLOAD_STATE}" icon="@Embed(source='resources/images/Network.png')" label=" "/>
</mx:dataProvider>
</mx:ToggleButtonBar>
我想要的是最后一个按钮有一个 10 像素的水平间隙,因此它与其他按钮分开。我还希望它比其他按钮小一点。有可能做到还是我应该尝试不同的方法?我也尝试将它定义为一个单独的按钮,但随后你失去了按下按钮的效果。