Share via


SysContextMenu.buildSubMenu Method [AX 2012]

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

Syntax

public PopupMenu buildSubMenu(
    TreeNode _treeNode, 
    int windowHdl, 
    PopupMenu parent, 
    PopupMenu popupMenu, 
   [int _itemsPerColumn, 
    int _maxColumns])

Run On

Client

Parameters

  • _treeNode
    Type: TreeNode Class
    The specified tree node which the pop-up menu is build from.
  • windowHdl
    Type: int
    The specified windows handle.
  • parent
    Type: PopupMenu Class
    The parent pop-up menu, which should contain the menu.
  • popupMenu
    Type: PopupMenu Class
    The specified popup menu which should contain the sub menu.
  • _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 PopupMenu class.

See Also

Reference

SysContextMenu Class