Tag Archives: mx_internal

Changing the label placement on an MX TabBar control in Flex

In a previous example, “Changing the label placement on an MX ButtonBar control in Flex (redux)”, we saw how you could set the label/icon placement on an MX ButtonBar control in Flex by extending the MX ButtonBar class and setting the navItemFactory property in the mx_internal namespace to a custom class.

The following example shows how you can set the label/icon placement on an MX TabBar control in Flex by extending the MX TabBar class and setting the navItemFactory property in the mx_internal namespace to a custom Tab button class.

Continue reading

Changing the label placement on an MX ButtonBar control in Flex (redux)

In a previous example, “Changing the label placement for a Flex ButtonBar control”, we saw how you could change the button’s label placement relative to its icon in a ButtonBar control in Flex by using the getChildAt() method and labelPlacement property.

The following example shows how you can set the label/icon placement on an MX ButtonBar control in Flex by extending the MX ButtonBar class and setting the navItemFactory property in the mx_internal namespace to a custom class.

Continue reading

Removing the header indicator and selection indicator from the MX DataGrid control header in Flex 3

In a previous example, “Disabling item highlight indicator in the MX List control in Flex 3″, we saw how you could disable the highlight indicator in the MX List control in Flex 3 by subclassing the List control and overriding the protected drawHighlightIndicator() method.

The following example shows how you can remove the header indicator and selection indicator from the MX DataGrid control in Flex 3 by extending the DataGridHeader class, overriding the protected drawHeaderIndicator() and drawSelectionIndicator() methods and setting the headerClass property in the mx_internal namespace.

Continue reading

Determining the number of lines in a Spark RichEditableText control in Flex 4

In a previous example, “Determining the number of lines in a TextArea control in Flex”, we saw how you could get the number of lines in an MX TextArea control by using the getTextField() method (in the mx_internal namespace) and the numLines property.

The following example shows how you can get the number of lines in a Spark RichEditableText control in Flex 4 by using the textContainerManager property (in the mx_internal namespace) and the numLines property.

Full code after the jump.

Continue reading