====== ShowPopupMenu ====== ShowPopupMenu [/I:nn] [/A:nn] [/F] [/D] The command loads the menu in *.mnu format or toolbar in *.bar format and displays it at the position of the mouse cursor. **Parameters** |< 100% 15% >| |menu|Path to menu file or toolbar file.| **Switches** |< 100% 15% >| |/I:nn|Overrides the display and size of the icons for a given menu. If there is no switch, the settings for displaying icons are the same as in the Total Commander menu (controlled by the IconsInMenus key).\\ \\ The number **nn** sets the size of the icon. If 0, the icons are disabled.| |/A:nn|Menu alignment. Specifies the position of the menu relative to the cursor. Represents the sum of the values. Only one value from each group can be included in the sum. The default value is 0, the alignment is in the upper left corner.\\ \\ **Horizontal alignment:**\\ 1 - center\\ 2 - right border\\ \\ **Vertical alignment:**\\ 4 - center\\ 8 - bottom border\\ \\ The following values ​​only work for function keys, and the options above are ignored:\\ \\ **Vertical alignment:**\\ 16 - top border of buttons\\ 32 - bottom border of buttons\\ \\ **Horizontal alignment:**\\ 64 - the left border of the buttons.\\ | |/F|The parameter is the name of a function that returns text in menu format. If there is no switch then parameter --- the name of the menu or toolbar file.| |/D|Enables dynamic menu mode (disables caching). In this mode, the menu is recreated each time it is called up.| **Remarks** Supported files in the following encodings: ANSI, UTF-16LE, UTF-16BE, UTF-8, UTF-8+BOM. The following menu display options are not supported: button border and item status display. *.bar file support has several limitations: * Executable files that set directly (without using the em_* command mechanism) cannot contain Total Commander variables (%P, %L and others) in the parameters. * Privilege escalation with using "*" before the command will not work. * Nested *.bar files are always displayed as a submenu. * The nesting depth of *.bar files is limited to 8 levels to exclude the possibility of infinite recursion.