Tag Archive for 'menu'

19
Aug

Setting the open duration on a Menu control in Flex

The following example shows how you can set the open duration of a Flex Menu control by setting the openDuration style.

Full code after the jump.

Continue reading ‘Setting the open duration on a Menu control in Flex’

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’

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’

29
Jan

Adding checkboxes, radiobuttons, and sub-menus to a Flex PopUpButton control’s pop up menu

In a previous example, “Adding a horizontal separator to a Flex PopUpButton control’s pop up menu”, we saw how you can add horizontal separators to a PopUpButton control’s pop up menu by setting the type attribute to “separator”. So, “what other special types are there?”, you may be asking, as it turns out you can create folders with sub-menus, checkboxes, radiobuttons, and even disable item selection.

Full code after the jump.

Continue reading ‘Adding checkboxes, radiobuttons, and sub-menus to a Flex PopUpButton control’s pop up menu’

29
Jan

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

The following example shows how you can 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.

Full code after the jump.

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

28
Jan

Setting the width on a Flex PopUpButton control’s pop up menu

The following example shows how you can set the width of a PopUpButton control’s pop up menu in Flex by setting the width property on the Menu control instance.

Full code after the jump.

Continue reading ‘Setting the width on a Flex PopUpButton control’s pop up menu’

18
Jan

Aligning labels in a Flex PopUpButton control’s pop up menu

The following example shows you how you can align the labels in a PopUpButton control’s pop up menu in Flex by setting the popUpStyleName and textAlign styles.

Full code after the jump.

Continue reading ‘Aligning labels in a Flex PopUpButton control’s pop up menu’

17
Jan

Setting the background color and background alpha on a Flex PopUpButton control’s pop up menu

The following example shows how you can change the background color and alpha of a PopUpButton control’s pop up menu in Flex by setting the popUpStyleName, backgroundAlpha, and backgroundColor styles.

Full code after the jump.

Continue reading ‘Setting the background color and background alpha on a Flex PopUpButton control’s pop up menu’