Command 7530-7599 perform wrong action

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

Command 7530-7599 perform wrong action

Post by *petermad »

history.txt
28.07.09 Added: Increased maximum number of custom column views from 29 to 99. Note that only the first 29 can be set via cm_SrcCustomView* commands, the additional are accessible via new command ranges 6530-, 7030- and 7530-
If I add these commnds to totalcmd.inc it works as expected:
cm_SrcCustomView30=6530 - sets view no. 30 in the source panel
cm_TrgCustomView30=7030 - sets view no. 30 in the target panel

But if I add this to totalcmd.inc:
cm_LeftCustomView30=7530 - it sets view no. 30 in the SOURCE panel - not in the LEFT panel as expected.
That means that 7030 and 7530 performs the same.

And what if I would like to add cm_RightCustomView30 - what command number should I use for that? 8030 does not work!
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.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

No, that's not correct:
6501-6999 is for the left side.
7001-7499 is for the right side.
7501-7999 is for the source.

There is no range for the target.
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

Aha, I just happned to test 6530 being in the left side and assumed that you listed the source command first in the history.txt file, since you in history.txt write cm_SrcCustomView* - and because cm_SrcCustomView* is listed before cm_LeftCustomView* in totalcmd.inc
6501-6999 is for the left side.
This also clarifies that 6501-6529 can replace 271-299 - good to know.

So no bug - but maybe you could change:
"...via new command ranges 6530-, 7030- and 7530-"
to something like:
"...via new command ranges 6530- (Left), 7030- (Right) and 7530- (Src)".

Also - I am a little confused - you write "...Increased maximum number of custom column views from 29 to 99", but if the range is 6501-6999, it seems that it is increased to 499 and not just 99 - or how?
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.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I have reserved a larger range so I can increase it in the future if necessary.
Author of Total Commander
https://www.ghisler.com
Post Reply