Tag Archive for 'linkbutton'

11
Sep

Setting the vertical gap between an icon and label on a LinkButton control in Flex

In a previous example, “Setting the horizontal gap between an icon and label on a LinkButton control in Flex”, we saw how you could set the horizontal gap between the icon and label on a Flex LinkButton control by setting the horizontalGap style.

The following example shows how you can set the vertical gap between the icon and label on a Flex LinkButton control by setting the verticalGap style.

Full code after the jump.

Continue reading ‘Setting the vertical gap between an icon and label on a LinkButton control in Flex’

08
Sep

Extending the LinkButton control in Flex

The following example shows how you can extend the Flex LinkButton control and add your own custom styles to a custom skin class.

Full code after the jump.

Continue reading ‘Extending the LinkButton control in Flex’

07
Sep

Removing the hand cursor from a disabled LinkButton control in Flex

The following example shows how you can remove the hand cursor from the a Flex LinkButton control by extending the LinkButton class, overriding the enabled setter function, and setting the useHandCursor property.

Full code after the jump.

Continue reading ‘Removing the hand cursor from a disabled LinkButton control in Flex’

06
Sep

Setting the horizontal gap between an icon and label on a LinkButton control in Flex

The following example shows how you can set the gap between the icon and label on a Flex LinkButton control by setting the horizontalGap style.

Full code after the jump.

Continue reading ‘Setting the horizontal gap between an icon and label on a LinkButton control in Flex’

06
Sep

Creating a toggleable LinkButton control in Flex

The following example shows how you can create a toggleable Flex LinkButton control by extending the mx.skins.halo.LinkButtonSkin and adding custom “selectedUpSkin”, “selectedOverSkin”, “selectedDownSkin”, and “selectedDisabledSkin” skin states.

Full code after the jump.

Continue reading ‘Creating a toggleable LinkButton control in Flex’

05
Sep

Positioning icons on a LinkButton control in Flex

The following example shows how you can position the icon and label in a Flex LinkButton control by setting the labelPlacement property to one of the static constant values in the ButtonLabelPlacement class.

Full code after the jump.

Continue reading ‘Positioning icons on a LinkButton control in Flex’

04
Sep

Using an embedded font with the LinkButton control in Flex

The following example shows how you can use an embedded font with the Flex LinkButton control by setting the fontFamily and fontWeight styles.

The LinkButton control uses a bold font weight by default, so you need to either embed the bold font weight, or set the LinkButton control’s fontWeight style to normal.

Full code after the jump.

Continue reading ‘Using an embedded font with the LinkButton control in Flex’

03
Sep

Setting the icon on a LinkButton control in Flex

The following example shows how you can embed an icon in the Flex LinkButton control by setting the icon style.

Full code after the jump.

Continue reading ‘Setting the icon on a LinkButton control in Flex’

02
Sep

Setting the corner radius of a LinkButton control in Flex

The following example shows how you can set the corner radius on a Flex LinkButton control by setting the cornerRadius style.

Full code after the jump.

Continue reading ‘Setting the corner radius of a LinkButton control in Flex’

02
Sep

Setting the selection color on a LinkButton control in Flex

In a previous example, “Setting the roll over color on a LinkButton control in Flex”, we saw how you can set the roll over color on a Flex LinkButton control by setting the rollOverColor style.

The following example shows how you can set the selection (mouse down) color on a Flex LinkButton control by setting the selectionColor style.

Full code after the jump.

Continue reading ‘Setting the selection color on a LinkButton control in Flex’

01
Sep

Setting the roll over color on a LinkButton control in Flex

The following example shows how you can set the roll over color on a Flex LinkButton control by setting the rollOverColor style.

Full code after the jump.

Continue reading ‘Setting the roll over color on a LinkButton control in Flex’