The ability to add icons to the main menu and "Favorite Directories"
Moderators: Hacker, petermad, Stefan2, white
The ability to add icons to the main menu and "Favorite Directories"
1. The ability to add icons in the main menu to the POPUP menu
2. Add icons to "Favorite Directories"
2. Add icons to "Favorite Directories"
Re: The ability to add icons
Support+++
You can already add icons to the Main menu, but only icons from the default icon library (standard wcmicons.dll) and only by manually editing the corresponding .inc file (wcmicons.inc) in a very cumbersome way where you have to add 10000 to the number of the command as it appears in the menu, which means that every time you change the menu, you have to update the entire list of added commands.
You can already add icons to the Main menu, but only icons from the default icon library (standard wcmicons.dll) and only by manually editing the corresponding .inc file (wcmicons.inc) in a very cumbersome way where you have to add 10000 to the number of the command as it appears in the menu, which means that every time you change the menu, you have to update the entire list of added commands.
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Re: The ability to add icons
I know that. I meant to add icons to another menu item, where POPUP is.
POPUP "&Files"
MENUITEM "&Change Attributes...", 502
...
POPUP "Prin&t" -------- ADD ICONS TO THIS MENU ITEM
MENUITEM "Print &Directory...", 2027
MENUITEM "Print Directory with &Subdirs...", 2028
MENUITEM "Print File &Contents\tCtrl+F9", 504
END_POPUP
MENUITEM "Create S&hortcut(s)...\tShift+Ctrl+F5", 1004
MENUITEM "Edit File Co&mment...\tCtrl+Z", 2700
MENUITEM "Show Fil&e Hint", 2914
MENUITEM "&Quick Search\tCtrl+S", 2915
...
END_POPUP
I would also like to be able to add icons to my favorite directories. Which is called on the button " * "
POPUP "&Files"
MENUITEM "&Change Attributes...", 502
...
POPUP "Prin&t" -------- ADD ICONS TO THIS MENU ITEM
MENUITEM "Print &Directory...", 2027
MENUITEM "Print Directory with &Subdirs...", 2028
MENUITEM "Print File &Contents\tCtrl+F9", 504
END_POPUP
MENUITEM "Create S&hortcut(s)...\tShift+Ctrl+F5", 1004
MENUITEM "Edit File Co&mment...\tCtrl+Z", 2700
MENUITEM "Show Fil&e Hint", 2914
MENUITEM "&Quick Search\tCtrl+S", 2915
...
END_POPUP
I would also like to be able to add icons to my favorite directories. Which is called on the button " * "
Re: The ability to add icons
Aha, yes support++ for that too.
I think that if an icon is set in the em_command, then that icon should be used everywhere - Buttons, Directory hotlist, Start menu, and Main menu.
One might object, that it can be time consuming to extract at lot of external icons, but I have for example never experienced any noticeable delay in showing button bar icons after deleting the .br2 cache file. Also it should not be that hard to implement caching of icons from em_commands if deemed necessary.
I think that if an icon is set in the em_command, then that icon should be used everywhere - Buttons, Directory hotlist, Start menu, and Main menu.
One might object, that it can be time consuming to extract at lot of external icons, but I have for example never experienced any noticeable delay in showing button bar icons after deleting the .br2 cache file. Also it should not be that hard to implement caching of icons from em_commands if deemed necessary.
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Re: The ability to add icons
The Problem is then how do you connect a >Popup "SubMenu"< to an icon as the popup doesnt have a command assigned?
EDITH: I take this back as there is no problem, see my post below
EDITH: I take this back as there is no problem, see my post below

Last edited by Sir_SiLvA on 2023-05-13, 22:20 UTC, edited 1 time in total.
Hoecker sie sind raus!
Re: The ability to add icons
Support++ for both ideas
License #1945
Windows 10 Pro x64
Version 22H2 (OS Build 19045.3930)
TC 11.00 x64 and x86, Everything 1.5.0.1366a x64, QAP 11.6.3.1 x64
Windows 10 Pro x64
Version 22H2 (OS Build 19045.3930)
TC 11.00 x64 and x86, Everything 1.5.0.1366a x64, QAP 11.6.3.1 x64
Re: The ability to add icons to the main menu and "Favorite Directories"
Yes, that would require a change in the menu syntax.The Problem is then how do you connect a >Popup "SubMenu"< to an icon as the popup doesnt have a command assigned?
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Re: The ability to add icons
Just for an example.
Limit em_ commands from 10000 to 89999.
A Popup menu from 90000 to 99999.
wcmd_eng.mnu
POPUP "&Files" 90000
MENUITEM "&Change Attributes...", 502
MENUITEM "&Copy TeraCopy", em_TeraCopy
POPUP "Prin&t" 90001
MENUITEM "Print &Directory...", 2027
END_POPUP
MENUITEM "Create S&hortcut(s)...\tShift+Ctrl+F5", 1004
END_POPUP
WCMICONS.INC
90000=10
502=1
10000=5
90001=11
2027=2
1004=3
Limit em_ commands from 10000 to 89999.
A Popup menu from 90000 to 99999.
wcmd_eng.mnu
POPUP "&Files" 90000
MENUITEM "&Change Attributes...", 502
MENUITEM "&Copy TeraCopy", em_TeraCopy
POPUP "Prin&t" 90001
MENUITEM "Print &Directory...", 2027
END_POPUP
MENUITEM "Create S&hortcut(s)...\tShift+Ctrl+F5", 1004
END_POPUP
WCMICONS.INC
90000=10
502=1
10000=5
90001=11
2027=2
1004=3
Re: The ability to add icons to the main menu and "Favorite Directories"
I would rather see something like:
POPUP "&Files", cm_command
to use the icon assigned to cm_command in the .inc file
and :
POPUP "&Files", em_command
to use the icon defined in the em_command's Icon field.
Of course the command should not be executed in POPUP lines.
POPUP "&Files", cm_command
to use the icon assigned to cm_command in the .inc file
and :
POPUP "&Files", em_command
to use the icon defined in the em_command's Icon field.
Of course the command should not be executed in POPUP lines.
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Re: The ability to add icons to the main menu and "Favorite Directories"
Suport++ (especially since POPUP "&Files", em/cm_command works by allready by ignoring the bold-text atm)petermad wrote: 2023-05-13, 21:48 UTC I would rather see something like:
POPUP "&Files", cm_command
to use the icon assigned to cm_command in the .inc file
and :
POPUP "&Files", em_command
to use the icon defined in the em_command's Icon field.
Of course the command should not be executed in POPUP lines.
Hoecker sie sind raus!
Re: The ability to add icons to the main menu and "Favorite Directories"
+1
F4MiniMenu (Forum) - Open selected file(s) from TC in defined editor(s) - A (minimalistic) clone of F4Menu
Source at GitHub (AutoHotkey). TCSyncComments (copy file comments)
Source at GitHub (AutoHotkey). TCSyncComments (copy file comments)
Re: The ability to add icons to the main menu and "Favorite Directories"
Good idea. Support this.
Now I avoid using such submenus in my custom one at all just because of the lack of that option.
Now I avoid using such submenus in my custom one at all just because of the lack of that option.
#278521 User License
Total Commander [always the latest version, including betas] x86/x64 on Win10 x64/Android 10/15
Total Commander [always the latest version, including betas] x86/x64 on Win10 x64/Android 10/15