ButtonBar to support / understand local folder

Here you can propose new features, make suggestions etc.

Moderators: white, Hacker, petermad, Stefan2

igarny
Junior Member
Junior Member
Posts: 58
Joined: 2023-01-26, 19:01 UTC

ButtonBar to support / understand local folder

Post by *igarny »

Hi guys,

My problem:
I am not able to trick TC to open the bar file from the local folder and make use of "display as menu" option of the ButtonBar


Background:
I know how to use %P... and it does work for other commands as param, but not here
I tried different ways to trick it, but with no luck
It works with absolute path
Strings in the button command field ending with .bar get the option: "display as menu"

I would like to be able to load a bar with a fixed short name, but depending on the local folder.

Please share, if there is a trick.
Last edited by igarny on 2023-04-27, 04:20 UTC, edited 1 time in total.
hi5
Power Member
Power Member
Posts: 551
Joined: 2012-11-03, 11:35 UTC
Contact:

Re: ButtonBar to support / understand local folder

Post by *hi5 »

Add the following to your usercmd.ini ( intro viewtopic.php?p=344777 )

[em_OpenBar]
cmd=OPENBAR %P%\fixedshortname.bar

Now create a button with em_OpenBar as the command. Hope it works.
F4MiniMenu (Forum) - Open selected file(s) from TC in defined editor(s) - A (minimalistic) clone of F4Menu
Source at GitHub (AutoHotkey). TCSyncComments (copy file comments)
igarny
Junior Member
Junior Member
Posts: 58
Joined: 2023-01-26, 19:01 UTC

Re: ButtonBar to support / understand local folder

Post by *igarny »

errrr almost...
Indeed I have not tried this, since I noticed, that TC changes the display options for the button.
Strings in the button command field ending with .bar get the option: "display as menu"
which is omitted when taking any other approach... ex. setting a command

Apologies.... I missed the "display as menu" criteria in the first post
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 »

igarny wrote: 2023-04-26, 18:28 UTCPlease share, if there is a trick.
There is no trick. You answered your own question:
igarny wrote: 2023-04-26, 19:11 UTCStrings in the button command field ending with .bar get the option: "display as menu"
Overquoting is evil! 👎
igarny
Junior Member
Junior Member
Posts: 58
Joined: 2023-01-26, 19:01 UTC

Re: ButtonBar to support / understand local folder

Post by *igarny »

:cry:
would it be possible then to add this peculiarity to your list of issues with TC flawed behavior @Fla$her? :roll:

There is the "start path" field for the button, which does accept %VARIABLES%, so presumably it should have been possible
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 »

igarny wrote: 2023-04-26, 19:59 UTCto your list of issues with TC flawed behavior
I don't understand what the list is about.
igarny wrote: 2023-04-26, 19:59 UTCThere is the "start path" field for the button, which does accept %VARIABLES%, so presumably it should have been possible
It doesn't make sense to fill in this field at all, the directory will remain current anyway.
But with the first field, one trick can still be done. But here the question is different: why is it necessary at all except for testing? TCMenu is quite enough for tests.
Overquoting is evil! 👎
igarny
Junior Member
Junior Member
Posts: 58
Joined: 2023-01-26, 19:01 UTC

Re: ButtonBar to support / understand local folder

Post by *igarny »

@Fla$her

I have updated the initial post with info, which came from my subsequent (second) post.
It seems to me there is a miscommunication
why is it necessary at all except for testing? TCMenu is quite enough for tests.
I am not after testing... I would like to use it every day. I am looking for a custom menu (from a button) for many of my folders..

Would there be a Plugin solution for this. Something simple and small, that can read the *.BAR files and create a popup menu out of them?

PS. wrt list of issues:
there is another post of yours https://www.ghisler.ch/board/viewtopic.php?t=78502 ... secretly hoping this one would fit in there.
User avatar
Stefan2
Power Member
Power Member
Posts: 4158
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Re: ButtonBar to support / understand local folder

Post by *Stefan2 »

igarny wrote: 2023-04-26, 18:28 UTC I am not able to trick TC to open the bar file from the local folder
Please share, if there is a trick.

Hi, that is not possible,

I tried that too sometimes to simulate Norton Commanders' "local menu" where you had a "nc.mnu" file in the wanted folders which opens by pressing F2.
https://www.ghisler.ch/board/viewtopic.php?t=31



An alternative may be Horst Schaeffer's PopSel Popup-Starter-Menü
https://www.horstmuc.de/wpopd.htm




 
hi5
Power Member
Power Member
Posts: 551
Joined: 2012-11-03, 11:35 UTC
Contact:

Re: ButtonBar to support / understand local folder

Post by *hi5 »

igarny wrote: 2023-04-26, 18:28 UTCI am not able to trick TC to open the bar file from the local folder and make use of "display as menu" option of the ButtonBar
@Stefan2 There is a trick actually I think

Try TCMenu which you can download here https://www.ghisler.com/tools.htm

Command: %COMMANDER_PATH%\tools\tcmenu\TCmenu.exe
Parameters: %p\tcbarfile.bar

This will open the tcbarfile.bar from the current folder if I'm not mistaken, I haven't used TCMenu for over 10 years or so, so you may have to play around with it to see if it works for you.
F4MiniMenu (Forum) - Open selected file(s) from TC in defined editor(s) - A (minimalistic) clone of F4Menu
Source at GitHub (AutoHotkey). TCSyncComments (copy file comments)
User avatar
Stefan2
Power Member
Power Member
Posts: 4158
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Re: ButtonBar to support / understand local folder

Post by *Stefan2 »

hi5 wrote: 2023-04-27, 07:51 UTC
Yes, that's the exact way I had in mind.
There are several tools to use for this workaround. (and some AutoHotkey pop-up-menu scripts too)
Thanks for your input.




 
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6490
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: ButtonBar to support / understand local folder

Post by *Horst.Epp »

No need for %P in the TCMenu parameter.
You can specifiy the name of the bar like this:
.\Editors.bar
Windows 11 Home x64 Version 23H2 (OS Build 22631.3527)
TC 11.03 x64 / x86
Everything 1.5.0.1372a (x64), Everything Toolbar 1.3.3, Listary Pro 6.3.0.73
QAP 11.6.3.2 x64
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6490
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: ButtonBar to support / understand local folder

Post by *Horst.Epp »

There is unfortunately no dark mode support of course in this old tool.
Also there is a newer version on the MGP software site.
http://www.mgpsoft.net/Downloads/TCmenu19.zip

History of changes
Version 1.9
- Fixed bug with drawing separators for Windows NT

Version 1.8
- Added support for nested .bar files. If choosen item contains in the command field .bar file name this bar will displayed instead of current menu. If parameter field contains word "menu", this .bar file will be attached to main menu as submenu.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3527)
TC 11.03 x64 / x86
Everything 1.5.0.1372a (x64), Everything Toolbar 1.3.3, Listary Pro 6.3.0.73
QAP 11.6.3.2 x64
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 »

igarny wrote: 2023-04-27, 04:26 UTC I am not after testing... I would like to use it every day. I am looking for a custom menu (from a button) for many of my folders..
Explain with specific examples in the work. I can't imagine how this can be used on a permanent basis.
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? What is the use here other than the previewing of the menu? Even if you have only a banal launch of programs without parameters in your bar files, then it is more practical to use static menus here.
igarny wrote: 2023-04-27, 04:26 UTC there is another post of yours https://www.ghisler.ch/board/viewtopic.php?t=78502 ... secretly hoping this one would fit in there.
There is absolutely no connection with the internal DC commands.

Stefan2 wrote: 2023-04-27, 06:48 UTC Hi, that is not possible
It's possible. I wrote above. And with what, you wrote yourself:
Stefan2 wrote: 2023-04-27, 08:04 UTC some AutoHotkey pop-up-menu scripts

Horst.Epp wrote: 2023-04-27, 08:44 UTCAlso there is a newer version on the MGP software site.
This is a distant 2003. ) There is a version 6 years fresher.
Last edited by Fla$her on 2023-04-28, 06:22 UTC, edited 2 times in total.
Overquoting is evil! 👎
hi5
Power Member
Power Member
Posts: 551
Joined: 2012-11-03, 11:35 UTC
Contact:

Re: ButtonBar to support / understand local folder

Post by *hi5 »

Horst.Epp wrote: 2023-04-27, 08:44 UTCAlso there is a newer version on the MGP software site.
Perhaps Ghisler could update the download - and as it seems to be old, perhaps see if the author can release the source.
F4MiniMenu (Forum) - Open selected file(s) from TC in defined editor(s) - A (minimalistic) clone of F4Menu
Source at GitHub (AutoHotkey). TCSyncComments (copy file comments)
User avatar
beb
Senior Member
Senior Member
Posts: 435
Joined: 2009-09-20, 08:03 UTC
Location: Odesa, Ukraine

Re: ButtonBar to support / understand local folder

Post by *beb »

Horst.Epp wrote: 2023-04-27, 08:44 UTC ...Also there is a newer version on the MGP software site.
http://www.mgpsoft.net/Downloads/TCmenu19.zip
The last version is 2.0 beta17.
http://www.mgpsoft.net/Downloads/TCMenu20b17.zip

Beta17 comes without history, but I still keep beta16 and its history as follows:
Version 2.0 beta16
- Fixed drawing of bold items.
- Added handling for command without extention ".exe" like "notepad"

Version 2.0 beta15
- Added SelectorBold value in TCMenu.ini file. Can be specified for each .bar
file separately or in [Common] section.
- Added support for icon cache in ICL format created by BarEditor. In order to
use ICL cache you have set UseTCCache=3 in TCMenu.ini file.

Version 2.0 beta14
- Added SeparatorBold value in TCMenu.ini file. Can be specified for each .bar
file separately or in [Common] section.

Version 2.0 beta13
- Added support for INC file localization. Localization is specified by "LocalINC"
key in [Common] section of TCMenu.ini file
- Added support for BarEditor. Path to BarEditor is specified by "BarEditor"
key in [Common] section of TCMenu.ini file

Version 2.0 beta10
- Added MRU list. MRU list is inserted automatucally on the top of the menu.
Size of MRU list for specific menu defined by key "MRUList" in the corresponding
section of TCMenu.ini file.
- Many bugfixes.

Version 2.0 beta4

- Fixed bug with executing internal TC commands from default item.

- Changed Shift+click processing for defualt items. Now single click executes
default item (if defined), otherwise shows menu as usual. Shift+click always
opens menu.

Version 2.0 beta3

- Added right text alignment. "Tabulator" key allows to specify tabulator char.
If tabulator char is present in Tooltip field, then text before this char
is left aligned and text after this char is right aligned. Is is not recommended
to use this feature in items for opening of nested menu, since Windows itself
draws right-aligned nested menu sign in such items.


- Added menu shortcut support.
Menu shortcut is single underlined symbol in menu text. Symbol underlined when
preceded by "&" (i.e. "Win&Amp" item could be selected by letter "A").

- Added automatic column splitting for very long menus.
ColumnHeight key limits number of items in column.
If key SkipEmptyBreak=0 not specidied, empty separators at begin and at end of
columns are discarded.

- Added "default item" support.
When program started by Ctrl+click on button, selected item is remembered as
"default item".
When program started by Shift+click on button, menu is not displayed and
"default item" is executed.

- Fixed bug loading icons from 16-bit modules.


Version 2.0 beta2
- FlatMenu key is ignored under themed Windows XP.

Version 2.0 beta1

- Added file TCMenu.ini.
This file should be in the same directory as TCMenu.exe

- Added color themes support.
Themes can be assigned for each menu/submenu separately. Settings in particular
section overwrite settings in [Common] section. Section for particular menu
should be named as corresponding .bar file without path. Color themes can be
stored in separate sections and referenced by "Theme" key. "FlatMenu" key of
main menu overwrites settings in child menu. See example of .ini file for full
list color theme keys.

- Added separators with text.
If "Tooltip" field for separators is not empty its text will be visible in menu.

- Added multicolumn menu support.
If "Tooltip" field contains tag "/BREAK" this item starts a new column in the menu.

- Added em_ commands support.

- Added support for any size icons.
Can be specified by "IconSize" key for each menu or as -$[nn] parameter for all menus.

- Added support for icon cashe files (.br2 files in TC 7).
Using TC cashe speed up menu creation if up-to-date .br2 file is present.
Controlled by "UseTCCache" key. Possible values are:
0 - don't use TC cache
2 - use TC cash if available and not outdated.
1 - use TC cache only. If .br2 file is absent or outdated show menu without icons.
IMPORTANT NOTE. Using "Icon size" value other then actually size of icons stored in
cashe cause to scaling, so these icons may looks ugly.
3 - use cache in ICL format. It is recommended to use BarEditor to create
such cache file.

- Added support for run minimized\maximized checkbox.
"RunHidden" relates to "Run minimized" checkbox. Such programs launch in hidden mode
instead of minimised. Of course it is true only for program supporting hidden mode
running (i.e. cmd.exe)

- Extended "cd" support.
"Parameters" field may contain S and/or T letters.
S - open directories in source/target panels.
T - open directories in new tabs
#278521 User License
Total Commander [always the latest version, including betas] x86/x64 on Win10 x64/Android 10
Post Reply