cm_Rereadsource tooltip

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
KozakMak
Senior Member
Senior Member
Posts: 370
Joined: 2021-05-24, 12:39 UTC
Location: UA

cm_Rereadsource tooltip

Post by *KozakMak »

cm_Rereadsource = tooltip says "Reread source"

https://ibb.co/p2fNstZ

Add to parameters "1" tooltip says "cm_Rereadsource"
OS: Win10 | TC: latest x64
User avatar
petermad
Power Member
Power Member
Posts: 14808
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: cm_Rereadsource tooltip

Post by *petermad »

Parameters for cm_commands can completely change their function, so I think it is OK to only show the tooltip from the .inc (or .mnu) file if no parameters are used.

Take for example cm_SrcByName - without parameter it toggles the name sorting, but with parameter 8 it stores the sort order for later use. If you make a button with cm_SrcByName 8 then it will not really do anything - so it is OK that the tooltip does not show "Source: Sort by name".

or cm_Edit - without parameters it opens the file in configured editor, but with parameter /C it acts as cm_EditNewFile
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
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: cm_Rereadsource tooltip

Post by *ghisler(Author) »

When you create a button with an internal command without parameters, TC stores this internally with the numeric value of the internal command, and shows the description of the command as tooltip. When you use parameters or chain multiple commands, TC stores the command as text and only parses it when you press the button. Then the command field itself is used as the tooltip. You can enter your own tip text if you prefer. It's currently not planned to change this behavior because parameters can really change a command a lot, e.g. when using cm_edit there are a lot of parameters to create new files or open other files.
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 14808
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: cm_Rereadsource tooltip

Post by *petermad »

Moderator message from: petermad » 2024-03-26, 01:53 UTC

Moved to "TC Behaviour which will not be changed" from "TC11.x bug reports (English)"
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
Post Reply