[Gambas-user] Pre-release of Gambas 3.10.0

Benoît Minisini gambas at ...1...
Tue Jul 18 21:39:57 CEST 2017


Le 18/07/2017 à 19:12, Tony Morehen a écrit :
> I'll compile and start using it right away.  In the meantime, a feature 
> request:
> 
> Currently, a menu item with children does nothing before displaying its 
> child menu items.  I propose that the parent menu raise a click event 
> before displaying its children.  This would allow you to show/not show 
> enable/disable child menu items based on the current state of the app or 
> its environment.
> 
> For example, when the edit menu is clicked, you can enable/disable the 
> paste item based on the state of the clipboard.
> 
> This change should not affect existing apps as they will not have click 
> handlers for parent menus.
> 

Why don't you use the Show and Hide events?

-- 
Benoît Minisini




More information about the User mailing list