From the category archives:

CheckBox

The following example shows how you can set the check box fill colors on a Flex CheckBox control by setting the fillColors style.

Full code after the jump.

[click to continue…]

{ 0 comments }

The following example shows how you can set the text and theme color on a Flex CheckBox control based on whether the control is selected or not.

Full code after the jump.

[click to continue…]

{ 0 comments }

The following example shows how you can set the text color on a disabled Flex CheckBox control by setting the disabledColor style.

Full code after the jump.

[click to continue…]

{ 0 comments }

The following example shows how you can display a hand cursor when the user rolls their mouse over the Flex CheckBox control by setting the useHandCursor and buttonMode properties.

According to the documentation for the useHandCursor property:

A Boolean value that indicates whether the pointing hand (hand cursor) appears when the mouse rolls over a sprite in which the buttonMode property is set to true. The default value of the useHandCursor property is true. If useHandCursor is set to true, the pointing hand used for buttons appears when the mouse rolls over a button sprite. If useHandCursor is false, the arrow pointer is used instead.

Full code after the jump.

[click to continue…]

{ 0 comments }

The following example shows how you can enable sticky highlighting on a Flex CheckBox control by setting the stickyHighlighting property.

According to the documentation for the stickyHighlighting property:

If false, the CheckBox displays its down skin when the user presses it but changes to its over skin when the user drags the mouse off of it. If true, the CheckBox displays its down skin when the user presses it, and continues to display this skin when the user drags the mouse off of it.

Full code after the jump.

[click to continue…]

{ 0 comments }

The following example shows how you can display a series of CheckBox controls using the Flex Repeater with an Array data provider.

Full code after the jump.

[click to continue…]

{ 10 comments }

The following example shows how you can set an error string on a Flex CheckBox control by setting the errorString property.

Full code after the jump.

[click to continue…]

{ 5 comments }

The following example shows how you can truncate the label on a CheckBox control in Flex by setting the width property.

Full code after the jump.

[click to continue…]

{ 0 comments }

Using a CheckBox control as a list item renderer in Flex

by Peter deHaan January 27, 2008

The following example will show you how you can use a CheckBox control as a custom item renderer in a List control in Flex.
I haven’t done a lot of testing yet, so if you have any tips/suggestions/improvements, please, share them in the comments.
Full code after the jump.

Read the full article →

Adding your own custom CheckBox control icons in Flex

by Peter deHaan September 29, 2007

The following example shows how you can override the default icon in the Adobe Flex CheckBox control and replace it with a custom embedded graphic.
Full code after the jump.

Read the full article →

Checking to see if a Flex CheckBox is selected before allowing a user to press a Button

by Peter deHaan September 13, 2007

The following example shows a few different ways of checking to see if the user selected a CheckBox control before allowing them to click a Button control. Got other tips? Leave them in the comments!
Full code after the jump.

Read the full article →

Changing a CheckBox control’s icon

by Peter deHaan August 25, 2007

The following example shows how you can customize the check icon in a CheckBox control and use embedded images instead.
Full code after the jump.

Read the full article →