Takk Peter, Total Commander hadde ikke vært det samme uten menyene dine. (Er feig og sier dette på norsk så TC utvikleren ikke blir fornærmet.)
I found a minor issue that is not really a error, but there is an excess space after the calculator command name in the metro apps section of the menu:
'MENUITEM "Calculator", em_ext_calculator '
I noticed something when developing a new feature for tcCmdVerify that generates menu lines; '&&' in the descriptions will be replaced by '_' in TC's menu.
Seems like I need to use '&&&', but I also noticed that when there are several &'s in the description, then I had to use '&&' for the following occurences of '&', like such:
Code: Select all
MENUITEM "Open English Language &&& Menu (wcmd_eng.lng && wcmd_eng.mnu)", em_ext_openlanguagefile0
Unless I make menu lines utilising '&' for shortcuts, then it needs '&&'s
Code: Select all
MENUITEM "Op&en English Language && Menu (wcmd_eng.lng && wcmd_eng.mnu)", em_ext_openlanguagefile0
That will display the &'s correctly here, a bit weird though.
I don't know if it's by design, or if it just works like this on my installation.
So menu code lines like:
Code: Select all
MENUITEM "English Language && Menu (&Internal)", em_ext_openlanguage
doesn't show the '&' but a '_'
Code: Select all
MENUITEM "Engl&ish Language && Menu (Internal)", em_ext_openlanguage
works. showing the '&'
But while playing around with this I had issues, and I am thinking this is a bug in Total Commander perhaps? At least if others can recreate it:
Lets say I have the above submenu item with '&i' and a popup menu which also has '&i' in it's name. If I press the key 'i' on my keyboard then this happens:
Total Commander instantly loads the default menu. And saves that as default.
minimal example menu:
Code: Select all
POPUP "M&isconfiguration"
MENUITEM "C&onfiguration...", cm_Config
MENUITEM "&Quit\tAlt+F4", 24340
END_POPUP
POPUP "M&ore"
MENUITEM "Engl&ish Language && Menu (Internal)", em_ext_openlanguage
END_POPUP
With that menu loaded; try to press ALT + o (bringing up the "More" menu), then press the letter "i"
Or just press the More menu with the mouse then press the letter "i" on your keyboard.
I realise it is a misconfiguration having the "&i" in these two places perhaps, but instant default menus feels a bit brutal. Does this happen for anybody else?