[TC 11.01] "cm_RightViewModeList 0" and "cm_RightViewModeList <name>" don't work

Bug reports will be moved here when the described bug has been fixed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
white
Power Member
Power Member
Posts: 4623
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

[TC 11.01] "cm_RightViewModeList 0" and "cm_RightViewModeList <name>" don't work

Post by *white »

cm_RightViewModeList 0 seems to do the same as cm_RightViewModeList without parameter.
cm_RightViewModeList <name> seems to set view mode to none.

The left and src variant both work OK.
User avatar
petermad
Power Member
Power Member
Posts: 14809
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [TC 11.01] "cm_RightViewModeList 0" and "cm_RightViewModeList <name>" don't work

Post by *petermad »

Confirmed.

cm_RightViewModeList 1, cm_RightViewModeList 2 etc. works OK though.
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: [TC 11.01] "cm_RightViewModeList 0" and "cm_RightViewModeList <name>" don't work

Post by *ghisler(Author) »

cm_RightViewModeList 0 seems to do the same as cm_RightViewModeList without parameter.
Confirmed, cm_LeftViewModeList 0 works fine, though.
cm_RightViewModeList <name> seems to set view mode to none.
It only supports numeric parameters, see help.
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 14809
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [TC 11.01] "cm_RightViewModeList 0" and "cm_RightViewModeList <name>" don't work

Post by *petermad »

It only supports numeric parameters, see help.
Yes, that is what the help shows, but in practice cm_LeftViewModeList name and cm_SrcViewModeList name works, so why not also cm_RightViewModeList name

Also the history contradicts the Help:
history.txt wrote:16.10.16 Fixed: cm_LeftViewModeList, cm_RightViewModeList and cm_SrcViewModeList now accept a view mode number>0 or view mode name as parameter in button bar, start menu, or internal command (32/64)

24.10.16 Fixed: cm_SrcViewModeList didn't accept view mode names as parameter, only view mode numbers (32/64)
It was even extended to work in the command line:
history.txt wrote:25.11.19 Fixed: cm_SrcViewModeList with parameter did not work on command line (32/64)
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
white
Power Member
Power Member
Posts: 4623
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: [TC 11.01] "cm_RightViewModeList 0" and "cm_RightViewModeList <name>" don't work

Post by *white »

ghisler(Author) wrote: 2023-09-11, 10:28 UTC
cm_RightViewModeList 0 seems to do the same as cm_RightViewModeList without parameter.
Confirmed, cm_LeftViewModeList 0 works fine, though.
Yes, as I said:
white wrote: 2023-09-10, 23:05 UTC The left and src variant both work OK.

ghisler(Author) wrote: 2023-09-11, 10:28 UTC
cm_RightViewModeList <name> seems to set view mode to none.
It only supports numeric parameters, see help.
:?: :arrow:
ghisler(Author) wrote: 2016-10-17, 13:12 UTC OK, weil der Aufwand gering ist, habe ich das nun so eingebaut (für Buttons, Startermenü und benutzerdef. Befehle):
cm_SrcViewModeList Ansichtsmodusname

Dasselbe geht mit Left/Right.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 11.01] "cm_RightViewModeList 0" and "cm_RightViewModeList <name>" don't work

Post by *ghisler(Author) »

I see, I will add it. Btw, you can use
cm_RightViewModeList -1
to switch to the default mode. That's what you would have to pass as LPARAM when sending the message directly, because 0 is the default (open the menu). When using a button or the command line, 0 is changed to -1 internally for cm_LeftViewModeList.
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 14809
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [TC 11.01] "cm_RightViewModeList 0" and "cm_RightViewModeList <name>" don't work

Post by *petermad »

history.txt wrote:12.09.23 Fixed: cm_RightViewModeList didn't support parameter 0 (default) and view mode names as cm_LeftViewModeList (32/64)
Confirmed fixed in TC 11.02rc1 :-)

Moderator message from: petermad » 2023-10-05, 19:32 UTC

Moved to "TC fixed bugs" 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
User avatar
white
Power Member
Power Member
Posts: 4623
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: [TC 11.01] "cm_RightViewModeList 0" and "cm_RightViewModeList <name>" don't work

Post by *white »

petermad wrote: 2023-10-05, 19:32 UTC Confirmed fixed in TC 11.02rc1 :-)
Confirmed.
Post Reply