# PopupMenu Submenus > [HTML Version](popupmenusubmenus.htm) _Added January 2017_ Beginning with A-Shell 6.3.1542 of January 2017, the XTREE PopupMenu supports submenus. The syntax is the same as for Hover/Context menus, i.e. set the cmd field (of the text,cmd; menu item pair) to "\[SUB\]" to mark the beginning of the submenu, and the text field of a subsequent item to "\[ENDSUB\]" to mark the end of the submenu. For example: coldef\$ += "0~0~ ~SH~PopupMenu=" \& + "\!Retire\\tF2,VK\_xF501;" \& + "|arrow\_right\_green::ashico1|Peacetime,\[SUB\];" \& + "|photo\_portrait::ashico1|Visit\\tF3,VK\_xF502;" \& + "|signpost::ashico1|Pass Through,VK\_xF503;" \& + "\[ENDSUB\],;" \& + "-----,;" \& + "|gear::ashico1|Wartime,\[SUB\];" \& + "Attack,VK\_xF504;Lay Siege,VK\_x507;" \& + "\[ENDSUB\],;" \& + "-----,;" \& ... The code above defines a PopupMenu which looks something like this: Retire F2 (disabled item) Peacetime (submenu with icon) Visit F3 (submenu item with icon) Pass Through (submenu item with icon) --------------------- (separator) Wartime (submenu with icon) Attack (submenu item) Lay Siege (submenu item) --------------------- (separator) ...