Tag Archive for 'checkbox'

15
Aug

Displaying a hand cursor when the user rolls over the CheckBox control in Flex

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.

Continue reading ‘Displaying a hand cursor when the user rolls over the CheckBox control in Flex’

14
Aug

Enabling sticky highlighting on a CheckBox control in Flex

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.

Continue reading ‘Enabling sticky highlighting on a CheckBox control in Flex’

29
May

Displaying CheckBox controls using the Repeater in Flex

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.

Continue reading ‘Displaying CheckBox controls using the Repeater in Flex’

21
May

Setting an error string on a CheckBox control in Flex

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.

Continue reading ‘Setting an error string on a CheckBox control in Flex’

06
Feb

Truncating the label on a Flex CheckBox control

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.

Continue reading ‘Truncating the label on a Flex CheckBox control’

27
Jan

Using a CheckBox control as a list item renderer in Flex

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.

Continue reading ‘Using a CheckBox control as a list item renderer in Flex’

29
Sep

Adding your own custom CheckBox control icons in Flex

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.

Continue reading ‘Adding your own custom CheckBox control icons in Flex’

13
Sep

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

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.

Continue reading ‘Checking to see if a Flex CheckBox is selected before allowing a user to press a Button’

25
Aug

Changing a CheckBox control’s icon

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.

Continue reading ‘Changing a CheckBox control’s icon’

25
Aug

Changing a CheckBox control’s label placement

While probably not very useful to most, this is a quick post on changing the CheckBox control’s labelPlacement property to control where the text appears in relation to the check box.

Full code after the jump.

Continue reading ‘Changing a CheckBox control’s label placement’

25
Aug

Changing a CheckBox control’s icon color and border color

The following example shows how you can change the CheckBox control’s checkmark icon color and the border color by setting the control’s iconColor and borderColor styles repectively.

Full code after the jump.

Continue reading ‘Changing a CheckBox control’s icon color and border color’