User interface programming / Dialog actions |
The CONTEXTMENU action default attribute allows to control action visibility in the contextual menu.
Some front-ends can display a contextual menu, with all the active actions that are possible in the current form. Displaying all actions might not be adapted to your needs. To control if an action must be displayed in the context menu, set the CONTEXTMENU attribute in action defaults. Values for CONTEXTMENU can be YES, NO and AUTO.
ACTION DEFAULTS ... ACTION insert ( ... CONTEXTMENU = YES ... ) ACTION append ( ... CONTEXTMENU = YES ... ) ACTION delete ( ... CONTEXTMENU = YES ... ) ... ACTION validate_order ( ... CONTEXTMENU = NO ... ) ... END