0
是Flex中存在,如C#工具欄(http://msdn.microsoft.com/en-us/library/ms752063.aspx)的Flex工具欄元素
我使用HBox中和clipAndEnableScrolling = true的工具欄
但是我需要有滾動時的內容更廣,如C#確實
是Flex中存在,如C#工具欄(http://msdn.microsoft.com/en-us/library/ms752063.aspx)的Flex工具欄元素
我使用HBox中和clipAndEnableScrolling = true的工具欄
但是我需要有滾動時的內容更廣,如C#確實
缺省情況下,它不。其他人可能已經建立了一些組件。我一直只是根據需要翻身。我可能會做下面的事情。我相信有更好的方法,但蠻力適合我的需求,希望它能幫助你。
<s:HGroup width="100%">
<s:Button label="scroll left" click="scrollLeftClick()"/>
<s:Scroller width="100%" horizontalScrollPolicy="off">
<s:HGroup>
<s:Button label="button"/>
<s:Button label="button"/>
<s:Button label="button"/>
<s:Button label="button"/>
<s:Button label="button"/>
<s:Button label="button"/>
...//as many more buttons as needed
</s:HGroup>
</s:Scroller>
<s:Button label="scroll right" click="scrollRightClick()"/>
</s:HGroup>
然後作爲一個分隔符,你可以隨時使用下面的按鈕之間:
<s:Line height="100%">
<s:stroke>
<s:SolidColorStroke weight="2"/>
</s:stroke>
</s:Line>
然後只需添加功能scrollLeft和scrollRight移動scrollerPosition一切都將是正確的與世界無論如何。