Page 1 of 1

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

Posted: 2023-05-13, 06:23 UTC
by mitnik
1. The ability to add icons in the main menu to the POPUP menu
2. Add icons to "Favorite Directories"

Re: The ability to add icons

Posted: 2023-05-13, 08:27 UTC
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.

Re: The ability to add icons

Posted: 2023-05-13, 09:36 UTC
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 " * "

Re: The ability to add icons

Posted: 2023-05-13, 10:08 UTC
by petermad
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.

Re: The ability to add icons

Posted: 2023-05-13, 10:52 UTC
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 :-)

Re: The ability to add icons

Posted: 2023-05-13, 19:35 UTC
by jinsight
Support++ for both ideas

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

Posted: 2023-05-13, 20:43 UTC
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.

Re: The ability to add icons

Posted: 2023-05-13, 21:35 UTC
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

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

Posted: 2023-05-13, 21:48 UTC
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.

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

Posted: 2023-05-13, 22:18 UTC
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)

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

Posted: 2023-05-16, 17:34 UTC
by hi5
+1

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

Posted: 2023-05-16, 18:28 UTC
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.