Share via


SysContextMenu.buildMenu Method [AX 2012]

Builds a pop-up menu for the specified windows handle.

Syntax

public PopupMenu buildMenu(
    int windowHdl, 
   [PopupMenu _parent, 
    int _itemsPerColumn, 
    int _maxColumns])

Run On

Client

Parameters

  • windowHdl
    Type: int
    The windows handle that should contain the context menu.
  • _parent
    Type: PopupMenu Class
    The parent pop-up menu, which should contain the menu; optional.
  • _itemsPerColumn
    Type: int
    An integer value that specifies how many items per column; optional.
  • _maxColumns
    Type: int
    An integer value that specifies maximum columns; optional.

Return Value

Type: PopupMenu Class
A new instance of the PopupMenu class.

See Also

Reference

SysContextMenu Class