Posts tagged as:

direction

The following example shows how you can use tab stops on a Spark RichText primitive in Flex 4 by setting the tabStops style.

Full code after the jump.

[click to continue…]

{ 1 comment }

The following example shows how you can set the text alignment and text direction in a Spark TextArea control in Flex 4 by setting the textAlign and direction styles.

Full code after the jump.

[click to continue…]

{ 6 comments }

The following example shows how you can set the button height on a Flex ButtonBar control by setting the buttonHeight style.

Full code after the jump.

[click to continue…]

{ 0 comments }

The following example shows how you can toggle the item layout direction of the Flex TileList control by setting the direction property to “horizontal” or “vertical”.

Full code after the jump.

[click to continue…]

{ 1 comment }

The following example shows how you can change the direction of a FormItem container in Flex by setting the direction property to “horizontal” or “vertical”.

Full code after the jump.

[click to continue…]

{ 0 comments }

The following example shows how you can set the child layout direction of a ControlBar container in Flex by setting the direction property.

Full code after the jump.

[click to continue…]

{ 0 comments }

The following example shows how you can control the horizontal and vertical gaps between buttons in a ButtonBar control in Flex by setting the verticalGap and horizontalGap styles.

Full code after the jump.

[click to continue…]

{ 0 comments }

The following example shows you how you can change the direction of a Box container in Flex by setting the direction property to one of the constants in the BoxDirection class. The <mx:Box /> container is the superclass of the HBox container and VBox container. The subclasses (HBox and VBox) do not add any new functionality, they simply set the direction property automatically to “horizontal” or “vertical”.

Full code after the jump.

[click to continue…]

{ 0 comments }

Changing a chart legend’s direction

by Peter deHaan November 17, 2007

The following example shows how you can change the direction of a Flex chart’s legend by setting the direction property, as seen in the following snippet:

<mx:Legend dataProvider=”{lineChart}” direction=”horizontal” />

Full code after the jump.

Read the full article →

Displaying grid lines in a Flex LineChart control

by Peter deHaan November 15, 2007

The following example shows how you can add horizontal or vertical (or both) grid lines to a LineChart contol in Flex by setting the direction style in the GridLines tags, as seen in the following snippet:

<mx:LineChart dataProvider="{dp}">

<mx:backgroundElements>
<mx:GridLines direction="vertical" />
</mx:backgroundElements>

</mx:LineChart>

Full [...]

Read the full article →

Changing a Flex ProgressBar control’s direction

by Peter deHaan October 7, 2007

The following example shows how you can change whether a ProgressBar control fills from left-to-right or right-to-left by changing the direction property to one of the static constants in the mx.controls.ProgressBarDirection class.
Full code after the jump.

Read the full article →

Changing a Tile container’s child layout direction

by Peter deHaan August 25, 2007

The following example lets you change a Tile container’s direction property to control whether the container’s children are arranged from left to right, or top to bottom. You can also use two slider controls to change the value of the tileWidth and tileHeight properties.
Full code after the jump.

Read the full article →