Archive for January, 2009

31
Jan

Creating an auto-scrolling DataGrid control in Flex

In a previous example, “Auto-scrolling a TextArea control in Flex”, we saw how you can auto-scroll a Flex TextArea control when new content is added by setting the verticalScrollPosition property to the value of the maxVerticalScrollPosition property.

The following example shows how you can auto-scroll a Flex DataGrid control using the ArrayCollection object’s collectionChange event, and the verticalScrollPosition and maxVerticalScrollPosition properties

Full code after the jump.

Continue reading ‘Creating an auto-scrolling DataGrid control in Flex’

30
Jan

Creating an auto-repeating Spark Button control in Flex Gumbo

The following example shows how you can create an auto-repeating Flex Gumbo Soark Button control by setting the Boolean autoRepeat property.

Full code after the jump.

Continue reading ‘Creating an auto-repeating Spark Button control in Flex Gumbo’

29
Jan

Setting the arrow icon color of a disabled CheckBox control in Flex

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

Full code after the jump.

Continue reading ‘Setting the arrow icon color of a disabled CheckBox control in Flex’

28
Jan

Styling the last button in a ButtonBar control in Flex

The following example shows how you can style the last button in a Flex ButtonBar control by setting the lastButtonStyleName style.

Full code after the jump.

Continue reading ‘Styling the last button in a ButtonBar control in Flex’

27
Jan

Setting the horizontal scroll position in the TextInput control in Flex

The following example shows how you can progammatically scroll the Flex TextInput control by setting the horizontalScrollPosition property.

Full code after the jump.

Continue reading ‘Setting the horizontal scroll position in the TextInput control in Flex’

26
Jan

Setting the fill colors on a CheckBox control in Flex

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.

Continue reading ‘Setting the fill colors on a CheckBox control in Flex’

25
Jan

Setting the label color on a CheckBox control in Flex

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.

Continue reading ‘Setting the label color on a CheckBox control in Flex’

24
Jan

Setting the disabled text color on a CheckBox control in Flex

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.

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

23
Jan

Setting the column header text color on a DataGrid control in Flex

The following example shows how you can set the text color of a Flex DataGrid control’s column header text by setting the headerStyleName and color styles.

Full code after the jump.

Continue reading ‘Setting the column header text color on a DataGrid control in Flex’

22
Jan

Setting the header colors on the DataGrid control in Flex

The following example shows how you can set the header colors on a Flex DataGrid control by setting the headerColors style to an array of two colors to use for the background gradient.

Full code after the jump.

Continue reading ‘Setting the header colors on the DataGrid control in Flex’

21
Jan

Toggling buttons in a ToggleButtonBar control in Flex

The following example shows how you can toggle buttons in a Flex ToggleButtonBar control by setting the Boolean toggleOnClick property.

Full code after the jump.

Continue reading ‘Toggling buttons in a ToggleButtonBar control in Flex’

20
Jan

Displaying icons in a Flex PopUpButton control (Redux)

In a previous example, “Displaying icons in a Flex PopUpButton control”, we saw how you could add icons to a PopUpButton control’s nested menu using an Array data provider.

The following example shows you how you can add icons to a pop up menu in a PopUpButton control in Flex by specifying the iconField property in the PopUpButton control’s nested Menu control using an XML data provider.

Full code after the jump.

Continue reading ‘Displaying icons in a Flex PopUpButton control (Redux)’

19
Jan

Setting margins on a FxTextArea control in Flex Gumbo

The following example shows how you can set the margins on a Flex Gumbo FxTextArea control by setting the marginLeft, marginRight, marginTop, and marginBottom styles.

Full code after the jump.

Continue reading ‘Setting margins on a FxTextArea control in Flex Gumbo’

18
Jan

Displaying a Spark TextInput control’s text as a password in Flex Gumbo

The following example shows you how you can toggle between plain text and text masked as a password by setting the displayAsPassword property on a Flex Gumbo Spark TextInput control.

Full code after the jump.

Continue reading ‘Displaying a Spark TextInput control’s text as a password in Flex Gumbo’

17
Jan

Exporting the text in a FxTextArea control in Flex Gumbo

The following example shows how you can export the contents of a Flex Gumbo FxTextArea control by calling the export() method.

Full code after the jump.

Continue reading ‘Exporting the text in a FxTextArea control in Flex Gumbo’




Badge Farm

  • Powered by Redoable 1.2
  • Cornify
  • Feeds burnt by Feedburner
  • Feed