Position menu created using mx.controls.Menu possible?

76 views
Skip to first unread message

raghu

unread,
Aug 9, 2008, 11:55:07 PM8/9/08
to Flex India Community
Hi all..

Is it possible to position a menu created using Menu.createMenu ? It
always gets positioned relative to the application container, but I
want it to be inside a Panel that I have created.

Could someone please guide me on how to do this?

Thanks for your help!

Venkat Viswanathan

unread,
Aug 10, 2008, 5:04:56 AM8/10/08
to flex_...@googlegroups.com
Hi,

You can get the position of the panel by doing localToGlobal on the Panel's parent DisplayObject and then change the x/y of the Menu to this position.

Regards,
Venkat
Reply all
Reply to author
Forward
0 new messages