[TC 10 b6] order of parameters in OPENATTRIBUTES is not interchangeable

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: 14700
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

[TC 10 b6] order of parameters in OPENATTRIBUTES is not interchangeable

Post by *petermad »

There are certain combinations of parameters that does not work with OPENATTRIBUTES:

Theese all work:

Code: Select all

+c +d
+c +d11-11-11
+c +t
+c +t11-11-11
But if I put the +c at the end it doesn't work:

Code: Select all

+d +c
+d11-11-11 +c
+t +c
+t11-11-11 +c
then the current date and time is always used



There is also differences in how the sequence of +d and +t works.
If I use:

Code: Select all

+d11-11-11 +t11-11-11
+c +t11-11-11
then the dialog opens up with the Date field focused AND selected.

But if I use:

Code: Select all

+t11-11-11 +d11-11-11
+c +d11-11-11
+c +d
+d11-11-11 +c
+d +c
+t11-11-11 +c
+t +c
then the Date field is only focused, NOT selected.


Or in other words if +t is the last parameter, then the Date field is selected, otherwise not.
Last edited by petermad on 2021-04-18, 15:32 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.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: 48012
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 10 b6] order of parameters in OPENATTRIBUTES is not interchangeable

Post by *ghisler(Author) »

This is not a bug! The parameters are applied in the order you enter them. Why?
For example, you may want to set the current date, but a fixed time. Then you can use
+c +t10:00
What Total Commander does here is simulate a click on "Current time", and then set the time field manually.
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 14700
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [TC 10 b6] order of parameters in OPENATTRIBUTES is not interchangeable

Post by *petermad »

For example, you may want to set the current date, but a fixed time. Then you can use
+c +t10:00
And why can't +t10:00 +c result in the same? - but OK.

But what about the last part of my report: if +t is the last parameter, then the Date field is selected, otherwise not (i.e. only focused)
Last edited by petermad on 2021-04-19, 18:08 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.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: 48012
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 10 b6] order of parameters in OPENATTRIBUTES is not interchangeable

Post by *ghisler(Author) »

Here the date field also gets focused with +c at the end. Reason: Any such time operation caused the "Change date/time" checkbox to be checked, which places the cursor in the date field.
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 14700
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [TC 10 b6] order of parameters in OPENATTRIBUTES is not interchangeable

Post by *petermad »

Here the date field also gets focused with +c at the end.
That is not what I am referring to - it is this part - notice the red marking:

There is also differences in how the sequence of +d and +t works.
If I use:

Code: Select all

+d11-11-11 +t11-11-11
+c +t11-11-11
then the dialog opens up with the Date field focused AND selected.

But if I use:

Code: Select all

+t11-11-11 +d11-11-11
+c +d11-11-11
+c +d
+d11-11-11 +c
+d +c
+t11-11-11 +c
+t +c
then the Date field is only focused, NOT selected.


Or in other words if +t is the last parameter, then the Date field is selected, otherwise not.
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: 48012
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 10 b6] order of parameters in OPENATTRIBUTES is not interchangeable

Post by *ghisler(Author) »

I'm not actively focusing the field, it just happens when the input triggers it.
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 14700
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [TC 10 b6] order of parameters in OPENATTRIBUTES is not interchangeable

Post by *petermad »

It is not that it is focused, but that the content is selected, taht puzzels me, because it only happens, when +t is the last parameter
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
Post Reply