You could try a custom datadescriptor that pretends the menuitem is not
a branch, captures mouseDown, resets the branch flag and fakes a
mouseOver.  How do you dismiss a submenu?  mouseOut or another click?

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Claude Hussenet
Sent: Monday, September 10, 2007 10:28 AM
To: [email protected]
Subject: [flexcoders] Click instead of mouseover to display sub-menu

 


By default submenu from a Menu control are displayed by mouving
over a menutem.
Is it possible to change the behavior so a click on the menu item
triggers the display of the submenu.

I have looked the code of the Menu class and it does not seem easy to
overload the mouseOverHandler method.The method uses private field 
such as anchorRow without any accessors method.
Is there any other than cut and paste the menu and menuevent classes 
to reach my requirement ?

Thx-Claude

 

Reply via email to