Starling Feathers Controls Panel

来源:互联网 发布:诺基亚c3软件下载 编辑:程序博客网 时间:2024/05/22 04:52

说明:

The Panel component is a container that supports layout and scrolling, similar to ScrollContainer, but it also adds a header and an optional footer above and below the content, respectively. This component is useful for creating windows and dialogs and making any kind of grouping that needs a header or title.


示例:

var panel:Panel = new Panel();panel.headerProperties.title = "Is it time to party?";var layout:HorizontalLayout = new HorizontalLayout();layout.gap = 20;layout.padding = 20;panel.layout = layout;this.addChild( panel );var yesButton:Button = new Button();yesButton.label = "Yes";panel.addChild( yesButton );var noButton:Button = new Button();noButton.label = "No";panel.addChild( noButton );


效果:


更多说明参考:

http://wiki.starling-framework.org/feathers/panel

0 0