Interpret buttonbar as menu

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

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
Wilhelm M.
Power Member
Power Member
Posts: 994
Joined: 2003-06-05, 10:45 UTC

Post by *Wilhelm M. »

VadiMGP wrote:In addition, try to create copy of WCMICONS.DLL with name WCMICONS.ICL and check it with TCMenu.
Done. Result: it works!

But: what does this prove? I strongly doubt that the dll is just a "renamed" icl file, as was suggested by another user! Almost certainly it is not. So the test only shows that TCMenu does not care about the extension of the file.

Is vadim(at)mgpsoft.com still your valid email address?
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 strongly doubt that the dll is just a "renamed" icl file,
First of all I quite surprised about your doubts? :wink: You have to know "for sure" from where you've got this file! In th previous post you wrote
My wcmicons.icl file contains only the icons I really need.
So obviously YOU've created wcmicons.icl yourself?

what does this prove?
Exactly as you answer youself:
TCMenu does not care about the extension of the file
It seems there some problem with these specific icl files. So, question is: How you create these files?

Mail still valid, so send this icl to me.
VadiMGP
Power Member
Power Member
Posts: 672
Joined: 2003-04-05, 12:11 UTC
Location: Israel

Post by *VadiMGP »

2Clas Hortien
I think I found acceptable solution:
When you Ctrl+click on button TCMenu will show menu as usual and store selected item as default.
When you Shift+click on button TCMenu will execute default item .

What do you think about this?
User avatar
Clas Hortien
Member
Member
Posts: 198
Joined: 2003-03-03, 15:03 UTC

Post by *Clas Hortien »

This would be great :-)

Do i have to hold ctrl down when i open the TCMenu (click on the buttonbar button) or only when i click on the entry i want to define as default ?

Many thanks
VadiMGP
Power Member
Power Member
Posts: 672
Joined: 2003-04-05, 12:11 UTC
Location: Israel

Post by *VadiMGP »

2Clas Hortien
You have to Ctrl+click on button in buttonbar.
User avatar
Wilhelm M.
Power Member
Power Member
Posts: 994
Joined: 2003-06-05, 10:45 UTC

Post by *Wilhelm M. »

2VadiMGP:

Yes, I have created the icl files with the TC plugins ICLView and ICLRead. They are accepted by Windows for desktop icons and by TC for the button bars. The problem occurs only with TCMenu 2 (not with TCMenu 1).

But look for yourself. Files are on the way.
Grüße/Regards,
Wilhelm
User avatar
ZoSTeR
Power Member
Power Member
Posts: 1013
Joined: 2004-07-29, 11:00 UTC

Post by *ZoSTeR »

VadiMGP wrote:2Clas Hortien
You have to Ctrl+click on button in buttonbar.
How exactly do you retrieve this information?
Does TC pass it along somehow or do you request the keyboard state first thing when TCMenu is started?
VadiMGP
Power Member
Power Member
Posts: 672
Joined: 2003-04-05, 12:11 UTC
Location: Israel

Post by *VadiMGP »

2ZoSTeR
do you request the keyboard state first thing when TCMenu is started?
Exactly. GetAsyncKeyState API.
VadiMGP
Power Member
Power Member
Posts: 672
Joined: 2003-04-05, 12:11 UTC
Location: Israel

Post by *VadiMGP »

TCMenu 2.0 beta3 available.

Fixed bug with loading icons from 16-bit modules (dll,icl) + new fatures:
- Right text alignment.
- Keyboard menu support
- "default item" feature

Link: http://www.mgpsoft.net/Downloads/TCMenu20b3.zip
User avatar
Clas Hortien
Member
Member
Posts: 198
Joined: 2003-03-03, 15:03 UTC

Post by *Clas Hortien »

Hi,

the default item feature is really great :P. I love the bold entry of the default.
One thing i found so far, is when the default is a command like

cd %COMMANDER_PATH%

a message pops up, that the command cannot be executed. (Cannot run cd %COMMANDER_PATH%).

Many thanks

Clas
VadiMGP
Power Member
Power Member
Posts: 672
Joined: 2003-04-05, 12:11 UTC
Location: Israel

Post by *VadiMGP »

2Clas Hortien
a message pops up, that the command cannot be executed. (Cannot run cd %COMMANDER_PATH%).
This message appears for default item only? What happens if you try to execute this item in usual way?

If problem appears for default item only send me your .bar file, please.
User avatar
Clas Hortien
Member
Member
Posts: 198
Joined: 2003-03-03, 15:03 UTC

Post by *Clas Hortien »

Hi,

yes, this message only pops up when its executed as the default item. I sent you the bar file.

Regards

Clas
User avatar
Wilhelm M.
Power Member
Power Member
Posts: 994
Joined: 2003-06-05, 10:45 UTC

Post by *Wilhelm M. »

2VadiMPG:

Works perfectly now! :D

Thank you very much!
Grüße/Regards,
Wilhelm
VadiMGP
Power Member
Power Member
Posts: 672
Joined: 2003-04-05, 12:11 UTC
Location: Israel

Post by *VadiMGP »

2Clas Hortien I found a bug. Wait for beta 4. :)
VadiMGP
Power Member
Power Member
Posts: 672
Joined: 2003-04-05, 12:11 UTC
Location: Israel

Post by *VadiMGP »

TCMenu 2.0 beta4 available

- Bug fixes
- Changed default item behavior (Clas, I hope you'll like it :) )

Link: http://www.mgpsoft.net/Downloads/TCMenu20b4.zip
Post Reply