免责声明:入门级用户。我试图让我的s:Panel的2x2而不是4x1 Horizontal,如下面的代码所示。
我的目标:
亮度 - 对比度
色调 - 饱和度
我已尝试过HorizontalLayout和VerticalLayout,但无法弄清楚要做什么,因为此处的示例无法提供帮助:http://help.adobe.com/en_US/flex/using/WS0141D24B-6AEB-4721-BA04-9BF15F86350F.html
<s:Panel title="Brightness" width="247" height="67.5" backgroundColor="0xA0A0A0">
<s:layout>
<s:VerticalLayout paddingLeft="8"/>
</s:layout>
<s:HSlider id="BrightnessSlider" width="220" showDataTip="false" minimum="1" maximum="100" value="100" change="BrightnessChanged(event)"/>
</s:Panel>
<s:Panel title="Contrast" width="247" height="67.5" backgroundColor="0xA0A0A0">
<s:layout>
<s:VerticalLayout paddingLeft="8"/>
</s:layout>
<s:HSlider id="ContrastSlider" width="220" showDataTip="false" minimum="1" maximum="100" value="100" change="ContrastChanged(event)"/>
</s:Panel>
<s:Panel title="Hue" width="247" height="67.5" backgroundColor="0xA0A0A0">
<s:layout>
<s:VerticalLayout paddingLeft="8"/>
</s:layout>
<s:HSlider id="HueSlider" width="220" showDataTip="false" minimum="1" maximum="100" value="100" change="HueChanged(event)"/>
</s:Panel>
<s:Panel title="Saturation" width="247" height="67.5" backgroundColor="0xA0A0A0">
<s:layout>
<s:VerticalLayout paddingLeft="8"/>
</s:layout>
<s:HSlider id="SaturationSlider" width="220" showDataTip="false" minimum="1" maximum="100" value="100" change="SaturationChanged(event)"/>
</s:Panel>
</s:NavigatorContent>
答案 0 :(得分:1)
如何使用HGroup和VGroup。
<s:VGroup>
<s:HGroup>
<s:Panel title="Brightness" ...>
<s:layout>
<s:VerticalLayout paddingLeft="8"/>
</s:layout>
<s:HSlider id="BrightnessSlider" ... />
</s:Panel>
<s:Panel title="Contrast" ...>
...
</s:Panel>
</s:HGroup>
<s:HGroup>
<s:Panel title="Hue" ...>
...
</s:Panel>
<s:Panel title="Saturation" ...>
...
</s:Panel>
</s:HGroup>
</s:VGroup>