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
VadiMGP
Power Member
Power Member
Posts: 672
Joined: 2003-04-05, 12:11 UTC
Location: Israel

Post by *VadiMGP »

liketc wrote: Have you test the command: cm_ShowOnlySelected ? Does It not run correctly?
It is more better if you can fix it.
The command run correctly. The problem is wcmenu is external program, so after his terminating TC get focus back and redraw file list. The same behavior you can see if you run command cm_ShowOnlySelected from bar, switch to another application and switch back to TC. Of course i'll find workaround, i just asked Christian for some advice.
liketc
Junior Member
Junior Member
Posts: 3
Joined: 2003-05-13, 00:45 UTC

Post by *liketc »

VadiMGP wrote:
liketc wrote: Have you test the command: cm_ShowOnlySelected ? Does It not run correctly?
It is more better if you can fix it.
The command run correctly. The problem is wcmenu is external program, so after his terminating TC get focus back and redraw file list. The same behavior you can see if you run command cm_ShowOnlySelected from bar, switch to another application and switch back to TC. Of course i'll find workaround, i just asked Christian for some advice.
Oh,now ,I know some.

But why the command "cm_ExchangeSelection" can do well ?I think its action like cm_ShowOnlySelected?
User avatar
Hacker
Moderator
Moderator
Posts: 13065
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

This has to do with TC refreshing the content of the current dir when returning to the TC window. A refresh always changes the contents of the file panel to what really is in the dir (that means not only files shown by "Show only selected"). That's why you lose the shown list of files when returning back to TC.
cm_ExchangeSelection isn't affected because the refresh doesn't find any new files, so it leaves the selection as it is (exchanged). This is why cm_ExchangeSelction isn't affected.
You can test it yourself by selecting some files, Shift-F4, some temporary filename, Enter and Alt-F4. the previous selction will be lost because TC refreshed the file panel and found the new temporary file. TC reset the selection and is now showing all files.

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

Post by *VadiMGP »

The new version available.
ftp://mgppublic:public@mgpsoft.com/tcmenu16.zip

Changes are:
1. Program renamed to TCMENU. Good improvment? :D
2. Program can be placed in any directory.
3. Improvment for internal commands handling.
4. Fixed small bug on Windows NT.

2liketc cm_ShowOnlySelected now should work, check it please.
VadiMGP
Power Member
Power Member
Posts: 672
Joined: 2003-04-05, 12:11 UTC
Location: Israel

Post by *VadiMGP »

First of all the new version of TCMenu is available.
ftp://mgppublic:public@mgpsoft.com/tcmenu17.zip

Changes are:
1. If menu text for internal commands not specified, program will take it from .inc file.
2. Added support for cd command. Check readme for details.
Pay attention, cd command was checked with TC 5.51 only. It may not work with future TC version.

The second news: As i promised TCToolbar available also! :)
ftp://mgppublic:public@mgpsoft.com/tctoolbar12.zip
Using TCToolbar and TCMenu almost identical. Only difference from TCmenu is possibility to use .bar file name as command.
User avatar
djk
Power Member
Power Member
Posts: 1651
Joined: 2003-03-17, 11:33 UTC
Location: Poland
Contact:

Post by *djk »

VadiMGP wrote:2. Added support for cd command. Check readme for details.
Pay attention, cd command was checked with TC 5.51 only. It may not work with future TC version.
Big thanks for adding cd support!!!
DJK
Totally addicted to Total Commander
totalcmd.pl
en.totalcmd.pl
User avatar
WatchUer
Senior Member
Senior Member
Posts: 243
Joined: 2003-02-22, 10:46 UTC
Location: China

Post by *WatchUer »

Thx for the TCToolbar!

I think maybe the Esc key should work.
VadiMGP
Power Member
Power Member
Posts: 672
Joined: 2003-04-05, 12:11 UTC
Location: Israel

Post by *VadiMGP »

2WatchUer Wow! It seems you work by two hands! One hand clicks on the mouse and other press ESC key! :D Well, i'll add it.
VadiMGP
Power Member
Power Member
Posts: 672
Joined: 2003-04-05, 12:11 UTC
Location: Israel

Post by *VadiMGP »

Big thanks for adding cd support!!!
Sincerely yours! :)
User avatar
Munango-Keewati
Junior Member
Junior Member
Posts: 31
Joined: 2003-02-19, 18:45 UTC

Post by *Munango-Keewati »

VadiMGP wrote:The second news: As i promised TCToolbar available also! :)
ftp://mgppublic:public@mgpsoft.com/tctoolbar12.zip
Using TCToolbar and TCMenu almost identical. Only difference from TCmenu is possibility to use .bar file name as command.
Thanks!
VadiMGP
Power Member
Power Member
Posts: 672
Joined: 2003-04-05, 12:11 UTC
Location: Israel

Post by *VadiMGP »

TCToolbar 1.3 available. Added closing toolbar on ESC key.
ftp://mgppublic:public@mgpsoft.com/tctoolbar13.zip
User avatar
WatchUer
Senior Member
Senior Member
Posts: 243
Joined: 2003-02-22, 10:46 UTC
Location: China

Post by *WatchUer »

VadiMGP wrote:TCToolbar 1.3 available. Added closing toolbar on ESC key.
ftp://mgppublic:public@mgpsoft.com/tctoolbar13.zip
You are so kind, Thank you!
User avatar
djk
Power Member
Power Member
Posts: 1651
Joined: 2003-03-17, 11:33 UTC
Location: Poland
Contact:

Post by *djk »

A question about using 'cd'.
How should I use it to change directory in the current panel. When I only put the command "cd c:\mydirectory" it always change the directory in left panel. Which parameter should I add?
DJK
Totally addicted to Total Commander
totalcmd.pl
en.totalcmd.pl
VadiMGP
Power Member
Power Member
Posts: 672
Joined: 2003-04-05, 12:11 UTC
Location: Israel

Post by *VadiMGP »

2djk
Sorry, sad but true. :( Currently it is impossible because external program doesn't knows wich panel is current in TC. It is especially noticed in readme. In opposite to TC wich sets "source/target" panels, TCmenu sets "left/right" panel.
If in the future TC will support some interface for external programs i'll make appropriate changes.

2Christian
Can we hope for such interface?
User avatar
djk
Power Member
Power Member
Posts: 1651
Joined: 2003-03-17, 11:33 UTC
Location: Poland
Contact:

Post by *djk »

Sad, but thanks for the answer VadiMGP.
All the hope in Christian ;-)
DJK
Totally addicted to Total Commander
totalcmd.pl
en.totalcmd.pl
Post Reply