HistoryButton

Openzet.org

목차

소개

HistoryButtonViewStack을 target으로 하며 앞으로 가기 / 뒤로 가기의 기능을 수행할 수 있는 버튼이다

그림:HistoryButton1.jpg

속성

사용법

<controls:HistoryButton target="{vs}" useForward="true" useBackward="true" />

HistoryButton.target을 설정하게 되면 useForward, useBackward의 상태에 따라 앞으로 가기, 뒤로 가기 버튼이 생성된다.

애플리케이션 예제

<?xml version="1.0" encoding="utf-8"?>
<mx:Application
xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns:controls="org.openzet.controls.*">
 
<mx:VBox>
<mx:HBox width="100%"
horizontalAlign="right">
<controls:HistoryButton target="{vs}"
useForward="true" useBackward="true" />
</mx:HBox>
<mx:TabNavigator id="vs"
width="300" height="300">
<mx:VBox width="100%" height="100%"
label="tab 1"
backgroundColor="0xFF0000" backgroundAlpha=".1">
<mx:Label text="box 1" />
</mx:VBox>
<mx:VBox width="100%" height="100%"
label="tab 2"
backgroundColor="0x0000FF" backgroundAlpha=".1">
<mx:Label text="box 2" />
</mx:VBox>
<mx:VBox width="100%" height="100%"
label="tab 3"
backgroundColor="0x00FF00" backgroundAlpha=".1">
<mx:Label text="box 3" />
</mx:VBox>
</mx:TabNavigator>
</mx:VBox>
</mx:Application>
실버라이트