Hi all.
As I see, wcmd_eng.mnu and another menus use some DEC code from totalcmd.inc to get cm_... action.
Also I see some people's menus with $HEX codes.
Even more, I also see some cm_... and em_... just instead of the any codes.
Wich practice is the best? And reliably?
Wich of these works good on old TC versions or old Windows?
MNU: best encoding,notation,syntax of commands for menu files?
Moderators: white, Hacker, petermad, Stefan2
MNU: best encoding,notation,syntax of commands for menu files?
Ukrainian Total Commander Translator. Feedback and discuss.
Re: Menu commands encoding
One benefit of using the numbers like: 2950 instead of cm_SwitchDarkmode is that if you use the menu with an older version of TC which does not support the command, then TC will not generate an error on startup, but simply just disable the menu item (grey it out).
em_commands cannot be replaced with numbers in the menu.
But em_commands can be given a number in the wcmicons.inc file (to use an icon from wcmicons.dll for that em_command in the menu) - the first em_command in a menu has number 10000 and so on
It is tough to maintain those 10000+ numbers in wcmicons.inc because each time a new em_command is put into the .mnu file, all the em_commands that comes after that has to have their number changed in wcmicons.inc
em_commands cannot be replaced with numbers in the menu.
But em_commands can be given a number in the wcmicons.inc file (to use an icon from wcmicons.dll for that em_command in the menu) - the first em_command in a menu has number 10000 and so on
It is tough to maintain those 10000+ numbers in wcmicons.inc because each time a new em_command is put into the .mnu file, all the em_commands that comes after that has to have their number changed in wcmicons.inc
Last edited by petermad on 2020-01-24, 12:26 UTC, edited 1 time in total.
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
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
Re: Menu commands encoding
Could anyone move the topic to "Total Commander (English)" folder, please.
Ukrainian Total Commander Translator. Feedback and discuss.
Re: Menu commands encoding
[mod="Hacker"]Moved to the English forum.[/mod]
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
Re: Menu commands encoding
Thanks.
As I see, the best should be DEX code? AFAIK, inc files include DEC numbers for commands, it should be easier to just copy/paste needed item instead of conversion DEC-HEX.
As I see, the best should be DEX code? AFAIK, inc files include DEC numbers for commands, it should be easier to just copy/paste needed item instead of conversion DEC-HEX.
Ukrainian Total Commander Translator. Feedback and discuss.
Re: Menu commands encoding
The "Main Menu Editor" from Ultra TC Editors can do that automatically for you - https://madsenworld.dk/tcmd/ultratceditor.png
https://sites.google.com/site/ultratceditors/ultra_tc_editors
https://sites.google.com/site/ultratceditors/ultra_tc_editors
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
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
Re: Menu commands encoding
Thanks.
That needs to be tested.
That needs to be tested.
Ukrainian Total Commander Translator. Feedback and discuss.