Menu and toolbar icons

Use the Icons dialog to find or create icons and assign them to menu items and toolbar buttons.

 

You can specify icon file after *. Also can be specified 0-based icon index. If icon is not specified, is used default icon. Use ** to prevent adding an icon. To prevent adding icons to all menu items, check 'No Icons' in Properties.

 

Examples:

Macro5 :mac "Macro5" * Shell32.dll * 5
Macro5 :mac "Macro5" * Shell32.dll,5
Select All :key Ca * C:\Icons\Select All.ico
:int i=2*2; outp(i * 10) * iconinmyqmfolder.ico
Macro5 :mac "Macro5" * $desktop$\ic1.ico
Macro5 :mac "Macro5" **

 

 

QM 2.3.0. Icon index also can be specified using syntax iconfile,iconindex (example 2).

 

With menus created at run time (DynamicMenu), instead of icon file can be used icon handle. To retrieve icon handle, use GetFileIcon or GetWindowIcon or Windows API functions. Example. Icon handles can be used with toolbars too, but they must not be destroyed until the toolbar is closed.