From the category archives:

PopUpButton

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.

[click to continue…]

{ 6 comments }

In a previous example, “Adding a horizontal separator to a Flex PopUpButton control’s pop up menu”, we saw how you could add a horizontal separator to a PopUpButton control’s pop up menu in Flex by setting the type attribute to “separator” in the menu’s data provider.

The following example shows how you can adjust the amount of empty space around the horizontal separator by setting the Boolean variableRowHeight property.

Full code after the jump.

[click to continue…]

{ 2 comments }

The following example shows how you can detect when a Flex ArrayCollection has changed (items added, removed, refreshed) by listening for the collectionChange event.

Full code after the jump.

[click to continue…]

{ 0 comments }

The following example shows how you can create a pop up TitleWindow container using the Flex PopUpButton control.

Full code after the jump.

[click to continue…]

{ 16 comments }

The following example shows how you can use a Tree control as a PopUpButton control’s pop up in Flex.

Full code after the jump.

[click to continue…]

{ 9 comments }

The following example shows how you can detect when the Flex PopUpButton control is opened or closed by listening for the open or close event.

Full code after the jump.

[click to continue…]

{ 0 comments }

The following example shows you how you can determine if a check box menu item in a Flex PopUpButton control was checked or not by using the change event on the pop up menu along with the dataDescriptor property and isToggled() method.

Full code after the jump.

[click to continue…]

{ 0 comments }

The following example shows how you can use the openAlways property on the PopUpButton control to open the PopUpButton control’s pop up menu when the user clicks on the main button. The openAlways property is false by default.

Full code after the jump.

[click to continue…]

{ 0 comments }

Detecting when the main button on the Flex PopUpButton control has been clicked

by Peter deHaan February 4, 2008

The following example shows how you can detect when the main button on the PopUpButton control has been clicked by listening for the click event.
Full code after the jump.

Read the full article →

Displaying a main icon in a Flex PopUpButton control

by Peter deHaan February 3, 2008

In a previous example, “Displaying icons in a Flex PopUpButton control”, we saw how you can display icons in a PopUpButton control’s pop up menu.
The following example shows how you can display an icon in a Flex PopUpButton control’s main button by setting the icon style.
Full code after the jump.

Read the full article →

Using a DataGrid control as a pop up in the Flex PopUpButton control

by Peter deHaan February 1, 2008

The following example shows you how you can use a DataGrid control as a pop up in a PopUpButton control in Flex.
Full code after the jump.

Read the full article →

Reducing the vertical space around a separator in a Flex PopUpButton control’s pop up menu by enabling variable row heights

by Peter deHaan January 31, 2008

The following example shows how you can reduce the amount of whitespace around a PopUpButton control’s pop up menu by setting the variableRowHeight property on the menu in Flex.
Full code after the jump.

Read the full article →