Tag Archives: tabnavigator

  • Multiline TabNavigator #2

    Posted on April 20, 2009 by in ActionScript, Blog, Flex, Flex Note

    MultiLineTab.as package controls { import flash.display.DisplayObject; import flash.text.TextLineMetrics; import mx.controls.tabBarClasses.Tab; import mx.core.IFlexDisplayObject; import mx.core.UITextField; import mx.core.mx_internal; use namespace mx_internal; public class MultiLineTab extends Tab { public function MultiLineTab() { super(); } override protected function createChildren():void { if (!textField) { textField = new UITextField(); textField.styleName = this; addChild(DisplayObject(textField)); } super.createChildren(); textField.multiline = true; textField.wordWrap = true; [...]

    6 Comments. Continue Reading...
  • Flex Multiline TabNavigator

    Posted on April 16, 2009 by in ActionScript, Blog, Flex, Flex Note

    Currently, if your label text is too long. The text will be truncated as “…” in the tab. However, there are very few posts talking about how to build a multiline tavnavigator in flex. And the flex API does not provide a style and properties to do such styling. We have to create custom classes. [...]

    3 Comments. Continue Reading...