Flex Gumbo中通过baseColor样式 设置FxHScrollBar背景颜色
作者:
Gumbo中通过baseColor样式 设置FxHScrollBar背景颜色的实现代码。需要的朋友可以参考下。
main.mxml:
<?xml version="1.0" encoding="utf-8"?>
<FxApplication name="FxHScrollBar_baseColor_test"
xmlns="http://ns.adobe.com/mxml/2009"
backgroundColor="white">
<ApplicationControlBar x="10" y="10">
<Form styleName="plain">
<FormItem label="baseColor:">
<ColorPicker id="colorPicker"
selectedColor="#CCCCCC" />
</FormItem>
</Form>
</ApplicationControlBar>
<VGroup horizontalCenter="0" verticalCenter="0">
<FxHScrollBar id="scrollBar"
baseColor="{colorPicker.selectedColor}" />
</VGroup>
</FxApplication>
复制代码 代码如下:
<?xml version="1.0" encoding="utf-8"?>
<FxApplication name="FxHScrollBar_baseColor_test"
xmlns="http://ns.adobe.com/mxml/2009"
backgroundColor="white">
<ApplicationControlBar x="10" y="10">
<Form styleName="plain">
<FormItem label="baseColor:">
<ColorPicker id="colorPicker"
selectedColor="#CCCCCC" />
</FormItem>
</Form>
</ApplicationControlBar>
<VGroup horizontalCenter="0" verticalCenter="0">
<FxHScrollBar id="scrollBar"
baseColor="{colorPicker.selectedColor}" />
</VGroup>
</FxApplication>