Monthly Archives: February 2008

Using embedded fonts with the Panel container in Flex

The following example shows how you can use an embedded font with the Flex Panel container so that a Panel container can be rotated or faded without the text “disappearing”. The trick here is to set the panel’s titleStyleName style to a custom style which sets the font family to the embedded font.

Full code after the jump.

Continue reading Using embedded fonts with the Panel container in Flex

Displaying the sort arrow in a Flex DataGrid control without having to click a column

I’ve seen this question come up a few times recently in various forums/lists and even in my blog comments (see “Changing the default sort arrow skin on a Flex DataGrid control”).

The following example shows how you can display the sort arrow in a DataGrid control in Flex without having the user click on a column header in the DataGrid control.

Full code after the jump.

Continue reading Displaying the sort arrow in a Flex DataGrid control without having to click a column

Aligning items vertically in a ControlBar container in Flex

In a previous example, “Aligning items horizontally in a ControlBar container in Flex”, we saw how you could align items horizontally within a ControlBar container by setting the horizontalAlign style.
The following example shows how you can align controls vertically in a Flex ControlBar container by setting the verticalAlign style.

Full code after the jump.

Continue reading Aligning items vertically in a ControlBar container in Flex