Menu properties

You can set menu properties in the Properties dialog. They are placed in the first line of menu text, so you can also edit them directly.



 /option1 [parameters] [/option2 [parameters] ...]


Space or semicolon, and one or more options. Each option begins with / and can have 1-2 parameters. If some parameter is not used, it can be omitted or "".


Some options are explained more in the menu topic.

Available options

1. Set menu position.

 /pos position


position - one of the following words: mouse (default), text, center.


2. Don't show icons.



3. When an item is clicked, close the menu but don't run the associated command. Can be useful if the menu will be launched from code (mac).



4. Disable Edit items in the right-click menu.



5. Expand file folders. Read more.

 /expandfolders flags level



1 Don't include shell objects that are not file system files/folders. For example, Control Panel folder and most objects in it are not file system objects.
2 Don't include folders.
4 Show hidden files/folders.
8 Expand not only folders but also shortcuts to folders. Expanded are only shortcuts that are in expanded folders.
16 Include only folders. Incompatible with flag 2.
32 Add 'This Folder' item at the top of a submenu. It opens the folder from which is created the submenu.
128 Display paths in the output when the menu is shown. Temporarily select it when you need to know paths of menu items. Especially useful when you need to include or exclude a non-file-system object (e.g. Recycle Bin). While this flag is set, /folder is not applied.

level limits the number of submenus. Examples: 1 - folder; 2 - folder\subfolder; 3 - folder\subfolder\subfolder.


6. Include/exclude patterns for /expandfolders. Applied only to files.

 /filter include exclude


You can specify one or more files to be included or/and excluded. Use | as separator. Use wildcard characters.


If include/exclude contains \ or : characters, evaluated is full path, else only filename.


Non-file-system objects are evaluated by path, which usually is one or more class id strings. To see paths, temporarily select "Show paths" in Properties (it is flag 128).


Examples of include or exclude: "*.txt" (txt files), "*.exe|*.com|*.bat" (files of these 3 types), "jun*" (files that begin with "jun"), "C:\*\*" (don't include files in C:\, but include files in folders), "?:\*\*" (the same for all drives).


7. Include/exclude patterns for /expandfolders. The same as above, but applied only to folders and drives.

 /filterfolders include exclude


Examples of include or exclude: "C:\" (drive C:), "A:\|D:\" (drives A: and D:), "::{645FF040-5081-101B-9F08-00AA002F954E}" (Recycle Bin).


8. Set background image for menu items. Can be bmp, gif, jpg. QM 2.3.4: also can be png. The image is tiled, and therefore can be smaller than a menu item.

 /bmp file


9. Set background image for highlighted menu item. The image is tiled.

 /bmpsel file


10. Set text color for normal and selected items.

 /tcol color colorsel


Here color and colorsel are colors in 0xBBGGRR format.


11. QM 2.3.0. When menu items exceed screen height, use multiple columns.



Expanded file folders are always displayed in multiple columns regardless of this option.