ButtonBar to support / understand local folder

Here you can propose new features, make suggestions etc.

Moderators: white, Hacker, petermad, Stefan2

User avatar
petermad
Power Member
Power Member
Posts: 14807
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: ButtonBar to support / understand local folder

Post by *petermad »

2Fla$her
For (In relation to) the bar file placed in the local folder, the toolbar opens as a menu. What's not clear here? You quoted it yourself:
That's clear enough, but you wrote:
It turns out that it is not necessary to position the cursor on the bar file, you just need to open the menu for the nested bar file in the current folder:
But is is not possible to open Bar files with dynamic paths (%Plocal.bar or .\local.bar ) as menus with the current implementation of the OPENBAR command - see: viewtopic.php?p=429799#p429799

That is why I suggested to use the Internal Association to open the bar as a menu - but that requires that the cursor is on the local.bar file
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
Fla$her
Power Member
Power Member
Posts: 2309
Joined: 2020-01-18, 04:03 UTC

Re: ButtonBar to support / understand local folder

Post by *Fla$her »

petermad wrote: 2023-05-02, 09:58 UTC But is is not possible to open Bar files with dynamic paths (%Plocal.bar or .\local.bar ) as menus with the current implementation of the OPENBAR command
And what does this have to do with what I said? I didn't say a word about OPENBAR. My solution is related to the dynamic EnvVar. OPENBAR is not required for this.
At first I had a loop version concerning the dynamics of the current full file name. But then I saw the edit of the post along with the meaning that I was missing.
petermad wrote: 2023-05-02, 09:58 UTC That is why I suggested to use the Internal Association to open the bar as a menu - but that requires that the cursor is on the local.bar file
I know. I didn't just mention a cool trick with **"%1". The quote was not about your method, but about what I wrote about earlier:
Fla$her wrote: 2023-04-27, 09:13 UTC Why, to open the necessary menus, you first need to go into special folders and position the cursor on some bar files, if you can make several hotkeys for the desired group of such bar files without wasting time on navigation, especially considering that in most cases bar files have a connection with the selected list items or object under the cursor?
Overquoting is evil! 👎
User avatar
petermad
Power Member
Power Member
Posts: 14807
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: ButtonBar to support / understand local folder

Post by *petermad »

2Fla$her

My confusion is because of the word "But" in this quote:
Fla$her wrote: 2023-05-01, 22:15 UTC I just saw the edit of the first post. It turns out that it is not necessary to position the cursor on the bar file, you just need to open the menu for the nested bar file in the current folder:
igarny wrote: 2023-04-26, 18:28 UTCI would like to be able to load a bar with a fixed short name, but depending on the local folder.
But I suggest a smarter solution (without having to put bar files in different folders):
The "But" made me believe that your TCFS2 solution was an alternative to "you just need to open the menu for the nested bar file in the current folder", when it apparently was the solution to that problem.
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
Fla$her
Power Member
Power Member
Posts: 2309
Joined: 2020-01-18, 04:03 UTC

Re: ButtonBar to support / understand local folder

Post by *Fla$her »

petermad wrote: 2023-05-02, 16:26 UTC The "But" made me believe that your TCFS2 solution was an alternative to "you just need to open the menu for the nested bar file in the current folder"
This is not a TCFS2 solution. It only performs an auxiliary call. The basis is in Autorun. I offered the best solution against the requested one, for which I also had a solution. But why is it, if there is a more convenient and simplified version?
petermad wrote: 2023-05-02, 16:26 UTC when it apparently was the solution to that problem.
What it?
Overquoting is evil! 👎
User avatar
petermad
Power Member
Power Member
Posts: 14807
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: ButtonBar to support / understand local folder

Post by *petermad »

What it?
The smarter solution
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: 48083
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: ButtonBar to support / understand local folder

Post by *ghisler(Author) »

I have now added a new command OPENBARMENU which will allow to open a button bar file as a menu from other locations than a button bar. It will only work when there is a top button bar, though. It will support loading the bar file from the current directory with the following syntax:
OPENBARMENU .\barfile.bar
Unfortunately this can't be done for the OPENBAR command, because the bar file function doesn't currently support Unicode - it would not work in folders with Unicode characters from a different code page. It works with the menu because I can just set the current directory to that of the active panel before loading the bar. This isn't possible with a regular bar because the current directory will change when you use Total Commander.
Author of Total Commander
https://www.ghisler.com
Fla$her
Power Member
Power Member
Posts: 2309
Joined: 2020-01-18, 04:03 UTC

Re: ButtonBar to support / understand local folder

Post by *Fla$her »

ghisler(Author) wrote: 2023-05-03, 10:06 UTCOPENBARMENU \barfile.bar
Doesn't work. The checkbox doesn't appear.

Why is access to "TC 11.x bug reports" closed?
Overquoting is evil! 👎
User avatar
Gral
Power Member
Power Member
Posts: 1467
Joined: 2005-01-26, 15:12 UTC

Re: ButtonBar to support / understand local folder

Post by *Gral »

OPENBARMENU - command missing in INC file

ALSO: can't start new topic on "TC11.x bug reports (English)"
Fla$her
Power Member
Power Member
Posts: 2309
Joined: 2020-01-18, 04:03 UTC

Re: ButtonBar to support / understand local folder

Post by *Fla$her »

Gral wrote: 2023-05-03, 18:12 UTCOPENBARMENU - command missing in INC file
I tried to add OPENBARMENU <filename>=-28; to the end — no effect.
Overquoting is evil! 👎
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48083
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: ButtonBar to support / understand local folder

Post by *ghisler(Author) »

Sorry, the syntax for using the file from the current directory is different:
OPENBARMENU .\barfile.bar
Note the dot in front of the backslash!
OPENBARMENU - command missing in INC file
Confirmed, I will add it.
Author of Total Commander
https://www.ghisler.com
Fla$her
Power Member
Power Member
Posts: 2309
Joined: 2020-01-18, 04:03 UTC

Re: ButtonBar to support / understand local folder

Post by *Fla$her »

ghisler(Author) wrote: 2023-05-03, 19:07 UTCNote the dot in front of the backslash!
Yeah, it's working now. But the menu is not tied to the button, it is drawn not to the right of the lower left edge of the button, but somewhere in the left area of it.
Overquoting is evil! 👎
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48083
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: ButtonBar to support / understand local folder

Post by *ghisler(Author) »

OPENBARMENU is NOT meant to be used from a button. It's meant for use from hotkey or starter menu, or for scripting, because OPENBAR already has a checkbox "Show as menu". I will check whether I can somehow pass the button coordinates to OPENBARMENU...
Author of Total Commander
https://www.ghisler.com
Fla$her
Power Member
Power Member
Posts: 2309
Joined: 2020-01-18, 04:03 UTC

Re: ButtonBar to support / understand local folder

Post by *Fla$her »

ghisler(Author) wrote: 2023-05-03, 19:49 UTCor for scripting
This requires full path support.
ghisler(Author) wrote: 2023-05-03, 19:49 UTCI will check whether I can somehow pass the button coordinates to OPENBARMENU...
Good. It's just that what I did above with the dynamic environment variable works exclusively with the button. An analog suggests itself. :wink:
Overquoting is evil! 👎
User avatar
petermad
Power Member
Power Member
Posts: 14807
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: ButtonBar to support / understand local folder

Post by *petermad »

This requires full path support.
It seems to me that full path to the .bar file is supported either as a fixed path in the cmd field or with %P in the param field.
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
Fla$her
Power Member
Power Member
Posts: 2309
Joined: 2020-01-18, 04:03 UTC

Re: ButtonBar to support / understand local folder

Post by *Fla$her »

petermad wrote: 2023-05-03, 22:24 UTCis supported
Already :?:
Overquoting is evil! 👎
Post Reply