The ability to add icons to the main menu and "Favorite Directories"

Here you can propose new features, make suggestions etc.

Moderators: white, Hacker, petermad, Stefan2

Post Reply
mitnik
Junior Member
Junior Member
Posts: 12
Joined: 2023-05-08, 13:57 UTC

The ability to add icons to the main menu and "Favorite Directories"

Post by *mitnik »

1. The ability to add icons in the main menu to the POPUP menu
2. Add icons to "Favorite Directories"
User avatar
petermad
Power Member
Power Member
Posts: 14829
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: The ability to add icons

Post by *petermad »

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.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
mitnik
Junior Member
Junior Member
Posts: 12
Joined: 2023-05-08, 13:57 UTC

Re: The ability to add icons

Post by *mitnik »

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 " * "
User avatar
petermad
Power Member
Power Member
Posts: 14829
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: The ability to add icons

Post by *petermad »

Aha, yes support++ for that too.

I think that if an icon is set in the em_command, then that ison 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.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
Sir_SiLvA
Power Member
Power Member
Posts: 3300
Joined: 2003-05-06, 11:46 UTC

Re: The ability to add icons

Post by *Sir_SiLvA »

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 :-)
Last edited by Sir_SiLvA on 2023-05-13, 22:20 UTC, edited 1 time in total.
Hoecker sie sind raus!
User avatar
jinsight
Senior Member
Senior Member
Posts: 299
Joined: 2003-02-25, 19:47 UTC
Location: Wooster, Ohio, USA

Re: The ability to add icons

Post by *jinsight »

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
User avatar
petermad
Power Member
Power Member
Posts: 14829
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: The ability to add icons to the main menu and "Favorite Directories"

Post by *petermad »

The Problem is then how do you connect a >Popup "SubMenu"< to an icon as the popup doesnt have a command assigned?
Yes, that would require a change in the menu syntax.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
mitnik
Junior Member
Junior Member
Posts: 12
Joined: 2023-05-08, 13:57 UTC

Re: The ability to add icons

Post by *mitnik »

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
User avatar
petermad
Power Member
Power Member
Posts: 14829
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: The ability to add icons to the main menu and "Favorite Directories"

Post by *petermad »

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.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
Sir_SiLvA
Power Member
Power Member
Posts: 3300
Joined: 2003-05-06, 11:46 UTC

Re: The ability to add icons to the main menu and "Favorite Directories"

Post by *Sir_SiLvA »

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.
Suport++ (especially since POPUP "&Files", em/cm_command works by allready by ignoring the bold-text atm)
Hoecker sie sind raus!
hi5
Power Member
Power Member
Posts: 551
Joined: 2012-11-03, 11:35 UTC
Contact:

Re: The ability to add icons to the main menu and "Favorite Directories"

Post by *hi5 »

+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)
User avatar
beb
Senior Member
Senior Member
Posts: 436
Joined: 2009-09-20, 08:03 UTC
Location: Odesa, Ukraine

Re: The ability to add icons to the main menu and "Favorite Directories"

Post by *beb »

Good idea. Support this.

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
Post Reply