Starling Feathers Controls Panel

說明:

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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章