Interpret buttonbar as menu

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
Minchen
Junior Member
Junior Member
Posts: 36
Joined: 2006-04-11, 09:01 UTC

Post by *Minchen »

Hi,
I have 2 rows of buttons. The TCMenu-menu has also an offset.

I have a screenshot but no place to upload. :-(
User avatar
djk
Power Member
Power Member
Posts: 1651
Joined: 2003-03-17, 11:33 UTC
Location: Poland
Contact:

Post by *djk »

2Minchen
Have you tried to put the variable like this:
%%COMMANDER_PATH%%\office.bar ?
DJK
Totally addicted to Total Commander
totalcmd.pl
en.totalcmd.pl
Minchen
Junior Member
Junior Member
Posts: 36
Joined: 2006-04-11, 09:01 UTC

Post by *Minchen »

No.
Now it works fine. Thanks.
VadiMGP
Power Member
Power Member
Posts: 672
Joined: 2003-04-05, 12:11 UTC
Location: Israel

Post by *VadiMGP »

2Clas Hortien
click on the menu button with Ctrl-left click (or ALT or
SHIFT) and the defined default application (Word) will start.
Technically it is possible, but how to define what is default command?

2ZoSTeR
How about a tooltip for the tooltip?
May be. I couldn't promise, but I'll try.
User avatar
Wilhelm M.
Power Member
Power Member
Posts: 1049
Joined: 2003-06-05, 10:45 UTC

Post by *Wilhelm M. »

The new version of TCMenu is very (!) nice!

I have a problem, though. On my system, TCMenu only displays icons that are extracted directly from programs but not from icon libraries.

E.g. in the button bar I call "regshot.exe" with an icon from
%commander_path%\Wcmicons.icl. When I use this bar with TCMenu, no icon is displayed at all. But when I specify the icon file in the button bar as "regshot.exe", everything is okay.
Why does this happen?
Grüße/Regards,
Wilhelm
VadiMGP
Power Member
Power Member
Posts: 672
Joined: 2003-04-05, 12:11 UTC
Location: Israel

Post by *VadiMGP »

2Wilhelm M.
%commander_path%\Wcmicons.icl.
What is Wcmicons.icl? I have WCMICONS.DLL and WCICONEX.DLL only. With both of them everything works fine. From where I can get thi ICL? What icon size in TCMenu you use?
User avatar
m^2
Power Member
Power Member
Posts: 1413
Joined: 2006-07-12, 10:02 UTC
Location: Poland
Contact:

Post by *m^2 »

I guess wcmicons.icl is just a renamed wcmicons.dll.
VadiMGP
Power Member
Power Member
Posts: 672
Joined: 2003-04-05, 12:11 UTC
Location: Israel

Post by *VadiMGP »

I doubt. What could be reason to rename it? :wink:
User avatar
m^2
Power Member
Power Member
Posts: 1413
Joined: 2006-07-12, 10:02 UTC
Location: Poland
Contact:

Post by *m^2 »

Because this dll is actually an icl (icon library). And he may have icl plugin / program assigned to icl and not to dll files.
User avatar
Wilhelm M.
Power Member
Power Member
Posts: 1049
Joined: 2003-06-05, 10:45 UTC

Post by *Wilhelm M. »

Well, *.icl files are standard 16-bit (I guess) icon libraries. You can get several TC plugins for viewing (ICLView.wlx) or organising (ICLRead.wcx) icl files. And TC itself can - of course - work with icl files instead of it's own WCMICONS.DLL file. My wcmicons.icl file contains only the icons I really need. It was created with the above plugins and contains mainly icons of external programs that I start from within TC.

Your question explains to me why these icons do not work with TCMenu. If you don't know icl files then TCMenu will not know them either, or will it? :wink:
Grüße/Regards,
Wilhelm
User avatar
Clas Hortien
Senior Member
Senior Member
Posts: 200
Joined: 2003-03-03, 15:03 UTC

Post by *Clas Hortien »

VadiMGP wrote:2Clas Hortien
click on the menu button with Ctrl-left click (or ALT or
SHIFT) and the defined default application (Word) will start.
Technically it is possible, but how to define what is default command?
You can easily do this by adding/changing a section in the tcmenu.ini file like:

Code: Select all

[Tools.bar]
Theme=Winter
Default=3
Which then runs the 3rd entry in the BAR file (Button 3).
#14041
VadiMGP
Power Member
Power Member
Posts: 672
Joined: 2003-04-05, 12:11 UTC
Location: Israel

Post by *VadiMGP »

2Wilhelm M.
If you don't know icl files then TCMenu will not know them either
No. TCMenu should work with any valid icon container (exe,dll,icl etc) I've tested it with .icl files created by
ICLRead.wcx 1.3.

Check again, please. May be there was issue with absent or too old .br2 file at and now it updated by TC (after your attempting to make modifications in .bar file)?

Also try other .icl files. May be there some problem with this specific icl.
VadiMGP
Power Member
Power Member
Posts: 672
Joined: 2003-04-05, 12:11 UTC
Location: Israel

Post by *VadiMGP »

2Clas Hortien
You can easily do this by adding/changing a section in the tcmenu.ini file like:
It isn't very elegant (requires editing in two places- first in .bar file and then in tcmenu.ini) , but it is better then nothing. Ok. I'll add it.

Added. Not. It is VERY unconvenient! User have to count manually item number in thr .bar file including separators! I wanted even allow to write
DefaultCmd=<tooltim content> but tooltip is not unique.
So it is still a problematic.
User avatar
Wilhelm M.
Power Member
Power Member
Posts: 1049
Joined: 2003-06-05, 10:45 UTC

Post by *Wilhelm M. »

First my program versions: TC 6.56 (so there are no br2 files), TC Menu 2 (latest beta).

I have done now several tests.
1) Using 2 other icl files. Result: NONE worked.
2) Using WCMICONS.DLL instead of the icls. Result: works ok. (!)
3) Switching to TCMenu version 1. No problem with ANY of the icon libraries (!)

If you want to examine the problem, I can send you my bar file together with the icl file per email.
Grüße/Regards,
Wilhelm
VadiMGP
Power Member
Power Member
Posts: 672
Joined: 2003-04-05, 12:11 UTC
Location: Israel

Post by *VadiMGP »

2Wilhelm M.
I can send you my bar file together with the icl file per email.
Yes, please. In addition, try to create copy of WCMICONS.DLL with name WCMICONS.ICL and check it with TCMenu.
Post Reply