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’
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’
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’
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’
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’
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’
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’
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’
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’
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’
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’