Vertical MenuBar Component

[dougmccune.com] Doug had posted a really good component in his blog – A Vertical MenuBar. This is really good as we now have one more navigation model other than the Accordion that can be docked on the left or right side of the application. check it out 🙂 . He also has a slick demo over there.

Someone on the Adobe Flex forum asked a question about being able to have vertical menus using a MenuBar component. The response from Peter Ent from Adobe was that no, Flex does not include a MenuBar component that can handle vertical menus, but feel free to make one yourself and post it <hint, hint>.

After I read that it felt like a challenge, so here’s the solution: a Vertical MenuBar component. It extends MenuBar and works the same way, except the Menu items are stacked vertically and the menus open up either to the left or to the right of the menu bar. I’ve included the full source, it uses two classes, one that’s an extension of mx.controls.MenuBar, and another one that’s an extension of mx.controls.menuClasses.MenuItemRenderer. You can specify whether you want the menu to open to the left or the right by using the new direction property of the new component.

[ Read the original post | Source ]

Advertisements

5 Responses to Vertical MenuBar Component

  1. Pingback: cannabis card

  2. Eco Green says:

    Politicians are 10 years behind the times when it comes to hemp use. People have been fighting for a long time against marijuana and pot prohibition with some movement going on now. Still too slow for those caught up in the jail system for possessing a little weed. Our freedoms have been trampled on by folks who know nothing about how beautiful cannabis can be for someones life, if one learns how to grow cannabis. Keep up the good work.

  3. hemptopia says:

    right on eco! the history of hemp prohibition is inextricably linked to the rise of the petro-chemical industry. The influence they weild on governments the world over ensured this wonder plants descent into the sludgy deep of the psycho-social landscape, we are not criminals!

  4. Good post. I learn something new and challenging on sites I stumbleupon everyday.
    It will always be useful to read through articles from other authors and use something from other sites.

  5. Thanks for every other fantastic post. Where else may just anyone get that kind of info in
    such a perfect method of writing? I’ve a presentation next week, and I’m
    at the search for such info.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: