A Button control that allows you to add any UI components to the Button via MXML.
The CanvasButton is an extension of Button that lets you set the contents of the Button
to any UI components, as opposed to only a single icon and label like the normal Button control
allows.
Example usage:
<flexlib:CanvasButton width="150" >
<mx:VBox height="100%" width="100%" verticalGap="0">
<mx:Label text="This is a" width="100%" textAlign="left" />
<mx:Label text="crazy" textAlign="center" fontSize="20" fontStyle="italic" fontWeight="bold" width="100%" />
<mx:Label text="button!" width="100%" textAlign="right" />
</mx:VBox>
</flexlib:CanvasButton>
mx.controls.Button
protected var _creatingContentPane:Boolean
protected var _defaultButton:IFlexDisplayObject
protected var _horizontalScrollPosition:Number
protected var _verticalScrollPosition:Number
protected var _viewMetrics:EdgeMetrics
buttonMode:Boolean
[override]
Implementation public function get buttonMode():Boolean
public function set buttonMode(value:Boolean):void
childDescriptors:Array
[write-only]
Since this class implements IContainer, when it is created it's parent container will set
the childDescriptors property with UIComponentDescriptor objects. These are used to create
the child components that are set in MXML.
Implementation public function set childDescriptors(value:Array):void
creatingContentPane:Boolean
Implementation public function get creatingContentPane():Boolean
public function set creatingContentPane(value:Boolean):void
defaultButton:IFlexDisplayObject
Implementation public function get defaultButton():IFlexDisplayObject
public function set defaultButton(value:IFlexDisplayObject):void
horizontalScrollPolicy:String
Implementation public function get horizontalScrollPolicy():String
public function set horizontalScrollPolicy(value:String):void
horizontalScrollPosition:Number
Implementation public function get horizontalScrollPosition():Number
public function set horizontalScrollPosition(value:Number):void
mouseChildren:Boolean
[override]
Implementation public function get mouseChildren():Boolean
public function set mouseChildren(value:Boolean):void
verticalScrollPolicy:String
Implementation public function get verticalScrollPolicy():String
public function set verticalScrollPolicy(value:String):void
verticalScrollPosition:Number
Implementation public function get verticalScrollPosition():Number
public function set verticalScrollPosition(value:Number):void
viewMetrics:EdgeMetrics
Implementation public function get viewMetrics():EdgeMetrics
public function set viewMetrics(value:EdgeMetrics):void
public function CanvasButton()
override protected function createChildren():void
override protected function measure():void
override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
Parameters
| unscaledWidth:Number |
|
| unscaledHeight:Number |
Mercredi Juillet 4 2012, 09:36 PM +02:00