Salesforce

Context Menu - Control Property (Magic xpa 2.x)

« Go Back

Information

 
Created ByKnowledge Migration User
Approval Process StatusPublished
Objective
Description

Context Menu Property (Magic xpa 2.x)

The Context Menu property specifies the context menu to be used on the control or form. This property appears for all controls, except for Subform controls.

The Context Menu property has the following options:

  • Context Menu field – You can enter a number up to 9999. If a non-existing entry is entered, the number will be reset. You can zoom from this field and select a menu from the Menu list.

  • Expression – You can enter an expression that will evaluate to an entry in the Menu repository. This expression is recomputed and will be evaluated each time the context menu is requested.

The default value for a control is 0 and for a form is 2.

When a context menu is defined, it can be opened as follows:

  • Windows – by right-clicking the mouse or by the keyboard context menu button.

  • Android – by clicking on the device menu button. It is only possible to define a context menu for forms and not for controls.

  • iOS – If the form has a title bar, by clicking on the button on the right corner of the form. Note that for iOS devices it is only possible to define a context menu for forms and not for controls.

When the context menu is requested, then:

  • If there is no default context menu on the control, Magic xpa will attempt to display the context menu of its parent control and will keep going up in the hierarchy trying to find a context menu (Windows only).

  • If no context menu is available, Magic xpa will display the context menu defined in the form (Windows only).

  • If no context menu is available for the form, Magic xpa will display the context menu defined in the application properties (Windows only).

  • If no default menu is found, no context menu will be displayed.

  • If the context menu is activated on either a parent task or a phantom task, Magic xpa will first pass focus to that task and then display the context menu.

  • If the control is disabled, it will not be possible to activate its context menu. In this case, the context menu will be that of the parent control.

  • If an OLE or .NET control has its own context menu, this is the context menu that will be displayed.

Images

If an image is defined for an entry in the menu system (as either Both or Menu), it will be displayed in the context menu as well.

Platform Specific: Images for context menus are not supported for iOS devices.

Platform specific

Android and iOS

  • Only the first level menu will be used.

  • Only the 'Program' and 'Event' entries will be shown.

  • If the form does not have a context menu defined, the application context menu will not be used for the form (unlike Windows behavior).

  • Disabled entries will not be shown.

Android only

  • The menu automatically shows a "More" button, which opens a list with the remaining items.

  • Unlike Windows behavior, the items defined in the control's context menu will be added to the default items of the control.

iOS only

  • Images are not supported.

  • Control level context menus are not supported. The iOS default context menu will be shown.

Related Topics

Reference
Attachment 
Attachment