Event Reference > Quick Reference for All Events > MenuSelected Event |
C1QueryFrame_MenuSelected (Menu As MenuTypeEnum, Action As Long, Cancel As Boolean)
Arguments
Menu specifies the menu that has been used for user selection. It is one of the following values:
Constant Value |
Name |
0 – c1q |
MenuMain |
1 – c1q |
MenuConnective |
2 – c1q |
MenuComparison |
3 – c1q |
MenuFields |
4 – c1q |
MenuSort |
5 – c1q |
MenuFunction |
6 – c1q |
MenuKind |
Action is a numeric identifier of the default action associated with the selected menu item. By default, Action is simply the 0-based index of the menu item in the menu. But it can be changed modifying the control’s templates, see Menu attributes in Customizing the UI with Templates.
Cancelis set to Falseon entering the event procedure. Setting it to True prevents the control from performing the default menu action. Set this argument to True if you want to override default and perform your own action instead.
Description
This event occurs when the end user selects a menu item, before the AfterMenu event. It allows developers to override default menu actions with their own actions.
See Also
Events on changing a query item