Hi Andrew,

Aside from my description below, and some code, do you see anything else that 
would be needed? I would expand on things like showing the MXML to set up a 
MenuBar and how the change event would be handled. It would basically be a copy 
of snippets from the MenuExample.

—peter

From: Andrew Wetmore <[email protected]<mailto:[email protected]>>
Reply-To: "[email protected]<mailto:[email protected]>" 
<[email protected]<mailto:[email protected]>>
Date: Tuesday, February 27, 2018 at 10:48 AM
To: "[email protected]<mailto:[email protected]>" 
<[email protected]<mailto:[email protected]>>
Subject: Re: [Royale] Menu and MenuBar

This is great! Will you be making a blog entry about these features? Or would 
you like me to try to create one?

a

On Tue, Feb 27, 2018 at 11:17 AM, Peter Ent 
<[email protected]<mailto:[email protected]>> wrote:
Hi,

I have committed a couple of new components to Royale in the develop branch of 
the royale-asjs Git repository. This is a brief summary.

Menu is class that lets you programmatically create and display pop-up menus. 
Menu uses an Array of String or an Array of Object (when you give Menu a 
labelField to select which item in each Object contains the label). Menu will 
dispatch a "change" event when an item is selected. The Menu is dismissed 
either by selecting an item or by selecting any where outside of the Menu 
itself. The Menu class does not display nested or sub-menus; it is a one-level 
only Menu.

MenuBar is a class that can be specified in MXML and displays a horizontal row 
of selectable items. MenuBar uses an Array of Objects, each Object having an 
item that contains an Array of menu items; these can be nested to produce a 
cascading set of menus. MenuBar will dispatch a "change" event when an item on 
any menu (or sub-menu) is selected. The menus are dismissed either by selecting 
an item or by selecting anywhere outside of the menus themselves.

MenuBar displays CascadingMenu instances by default. If you wish to use Menu 
(which is a bit lighter and does not support sub-menus), you can specify the 
menuClass either in MXML, ActionScript, or in a CSS style.

Please see examples/MenuExample for an example of how to use Menu and MenuBar.

Regards,
Peter Ent
Adobe Systems/Apache Royale Project




--
Andrew Wetmore

http://cottage14.blogspot.com/<https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fcottage14.blogspot.com%2F&data=02%7C01%7Cpent%40adobe.com%7Cfbb032d33d2b4e439ce008d57df984f9%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636553432986608939&sdata=gn7scswe05mB5kpjY1tO%2FwkpHmNaytDucRhciON8u%2BI%3D&reserved=0>




Reply via email to