Tag Archive for 'popupbutton'

02
Oct

Adding a horizontal separator to a Flex PopUpButton control’s pop up menu (redux)

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.

Continue reading ‘Adding a horizontal separator to a Flex PopUpButton control’s pop up menu (redux)’

14
May

Determining when an ArrayCollection changes in Flex

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.

Continue reading ‘Determining when an ArrayCollection changes in Flex’

13
Apr

Creating a pop up TitleWindow using the PopUpButton control in Flex

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

Full code after the jump.

Continue reading ‘Creating a pop up TitleWindow using the PopUpButton control in Flex’

26
Feb

Displaying a Tree control as a pop up for a Flex PopUpButton control

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.

Continue reading ‘Displaying a Tree control as a pop up for a Flex PopUpButton control’

18
Feb

Detecting when the Flex PopUpButton control is opened or closed

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.

Continue reading ‘Detecting when the Flex PopUpButton control is opened or closed’

11
Feb

Determining if a check box menu item is toggled in a Flex PopUpButton control’s pop up menu

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.

Continue reading ‘Determining if a check box menu item is toggled in a Flex PopUpButton control’s pop up menu’

05
Feb

Using the openAlways property on the Flex PopUpButton control

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.

Continue reading ‘Using the openAlways property on the Flex PopUpButton control’

04
Feb

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

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.

Continue reading ‘Detecting when the main button on the Flex PopUpButton control has been clicked’

03
Feb

Displaying a main icon in a Flex PopUpButton control

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.

Continue reading ‘Displaying a main icon in a Flex PopUpButton control’

01
Feb

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

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.

Continue reading ‘Using a DataGrid control as a pop up in the Flex PopUpButton control’

31
Jan

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

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.

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

31
Jan

Setting the corner radius on a Flex PopUpButton control

The following example shows how you can set the corner radius on the PopUpButton control in Flex by setting the cornerRadius style.

Full code after the jump.

Continue reading ‘Setting the corner radius on a Flex PopUpButton control’

31
Jan

Setting the vertical gap between a Flex PopUpButton control and its pop up menu

The following example shows how you can set the gap between a PopUpButton control and its pop up menu in Flex by setting the popUpGap style.

Full code after the jump.

Continue reading ‘Setting the vertical gap between a Flex PopUpButton control and its pop up menu’

30
Jan

Creating semi-transparent PopUpButton pop up menus in Flex

The following example shows you how you can create semi-transparent pop up menus using the Flex PopUpButton control by setting the backgroundAlpha, backgroundColor, and borderStyle styles on the pop up menu.

Full code after the jump.

Continue reading ‘Creating semi-transparent PopUpButton pop up menus in Flex’

30
Jan

Changing the width of the arrow button in a Flex PopUpButton control

The following example shows you how you can customize the width of the PopUpButton control’s arrow button in Flex by setting the arrowButtonWidth style.

Full code after the jump.

Continue reading ‘Changing the width of the arrow button in a Flex PopUpButton control’