Flex Multiline Button
Flex Multiline ButtonPosting mostly so I can find this again quickly. UPDATE:?posted working example (the code below does work). Right click – view source. Basically stolen straight from?Alex’s Flex Closet,but a button (not radio button),fixed casting,and just included the referenced class in the same file (less flexible,but,more convenient,maybe). Anyway – use just like a button but has multiple lines.
import mx.controls.Button; public class MultiLineButton extends Button override protected function createChildren():void super.createChildren(); textField.multiline = true; override protected function measure():void } override public function measureText(s:String):TextLineMetrics class NoTruncationUITextField extends UITextField 转载:http://www.forestandthetrees.com/2008/03/11/flex-multiline-button/ (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |