Tag Archive for 'enabled'

25
Jun

Detecting when a RadioButtonGroup has been enabled or disabled in Flex

In a previous example, “Enabling and disabling RadioButton controls in a RadioButtonGroup in Flex”, we saw how you can enable or disable all of the RadioButton controls in a Flex RadioButtonGroup by setting the enabled property.

The following example shows how you can detect when the enabled property changes by using the enabledChanged event.

Full code after the jump.

Continue reading ‘Detecting when a RadioButtonGroup has been enabled or disabled in Flex’

19
Jun

Enabling and disabling RadioButton controls in a RadioButtonGroup in Flex

The following example shows how you can set the visibility of all of the RadioButton controls in a Flex RadioButtonGroup by setting the enabled property.

Full code after the jump.

Continue reading ‘Enabling and disabling RadioButton controls in a RadioButtonGroup in Flex’

25
May

Setting the icon color on a disabled NumericStepper control in Flex

In a previous example, Setting the text color on a disabled NumericStepper control in Flex, we saw how to set the text color for a disabled Flex NumericStepper control by setting the disabledColor style.

The following example shows how you can set the icon color for a disabled Flex NumericStepper control by setting the disabledIconColor style.

Full code after the jump.

Continue reading ‘Setting the icon color on a disabled NumericStepper control in Flex’

25
May

Setting the text color on a disabled NumericStepper control in Flex

Continuing on the theme of NumericStepper examples, the following example shows how you can set the text color for a disabled Flex NumericStepper control by setting the disabledColor style.

Full code after the jump.

Continue reading ‘Setting the text color on a disabled NumericStepper control in Flex’

26
Apr

Setting the disabled text color on a TextArea control in Flex

The following example shows how you can set the text color on an enabled and disabled Flex TextArea control by setting the color and disabledColor styles.

Full code after the jump.

Continue reading ‘Setting the disabled text color on a TextArea control in Flex’

20
Feb

Disabling user input in a Flex Application

I’ve seen this come up a few times in various lists, and figured maybe somebody out there may find this useful.

The following example shows how you can prevent user input in a Flex application by setting the enabled property to false in the <mx:Application /> tag, or by setting the Application.application.enabled property.

Any suggestions? Leave them in the comments!

Full code after the jump.

Continue reading ‘Disabling user input in a Flex Application’

19
Feb

Setting the selection color and selection disabled color for a row in the Flex DataGrid control

The following example shows how you can edit the row selection color and disabled selection color of a DataGrid control in Flex by setting the selectionColor and selectionDisabledColor styles.

Full code after the jump.

Continue reading ‘Setting the selection color and selection disabled color for a row in the Flex DataGrid control’

10
Jan

Disabling individual buttons on a Flex ButtonBar control

The following example shows how you can disable individual buttons on a ButtonBar control in Flex by using the getChildAt() method and enabled property on the returned button instance.

Full code after the jump.

Continue reading ‘Disabling individual buttons on a Flex ButtonBar control’

10
Oct

Changing the background color of a disabled Flex TextInput control

The following example shows how you can use the backgroundDisabledColor style to customize the overlay color on a Flex TextInput control when the control’s enabled property is set to false.

Full code after the jump.

Continue reading ‘Changing the background color of a disabled Flex TextInput control’

25
Aug

Enabling and disabling specific tabs in a TabBar control

The following example shows how you can enable and disable individual tabs in a TabBar control by setting the enabled property in the ViewStack container’s child containers.

Full code after the jump.

Continue reading ‘Enabling and disabling specific tabs in a TabBar control’

02
Aug

Using the Validators.validateAll() method to validate a form

I recently saw this issue in FlexCoders and filed a bug for the poster. Well, it turns out the bug I filed was a duplicate of an existing bug, and that bug has been fixed (in Flex 3 — codename:Moxie). So, long story longer, here’s how you can use the Validator class’s validateAll() method to validate a form (which may or may not have enabled validators).

Full code (and workaround) after the jump.

Continue reading ‘Using the Validators.validateAll() method to validate a form’