Adding an startmenu to a button.

English support forum

Moderators: white, Hacker, petermad, Stefan2

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

Post by *VadiMGP »

2zbx
What command you mean? Both TCmenu & TCtoolbar are support almost all internal TC commands.
And %Commander_path% is not supported yet?
I was used it as %%Commander_path%%, and an error reported.
It's not a problem of TCmenu nor TCtoolbar. It is a common issue in TC.
zbx
Junior Member
Junior Member
Posts: 20
Joined: 2006-04-07, 09:32 UTC

Post by *zbx »

Such as this bar:

[Buttonbar]
Buttoncount=6
button1=%Commander_path%\Wcmicons.dll,2
cmd1=cm_VerticalPanels
menu1=File windows above each other
button2=%Commander_path%\Wcmicons.dll,2
cmd2=cm_Exchange
menu2=Swap panels
button3=%Commander_path%\Wcmicons.dll,2
cmd3=cm_SrcThumbs
menu3=Thumbnail view
button4=%Commander_path%\Wcmicons.dll,2
cmd4=cm_SrcQuickview
menu4=Quick view panel
button5=%Commander_path%\Wcmicons.dll,2
cmd5=cm_DirBranch
menu5=Show all files in current dir and all subdirs
button6=%Commander_path%\Wcmicons.dll,2
cmd6=cm_countdircontent
menu6=Calculate space occupied by subdirs in current dir

Run each command in it, all report "Cannot run cm_xxxx".

How should I do?
User avatar
Sheepdog
Power Member
Power Member
Posts: 5150
Joined: 2003-12-18, 21:44 UTC
Location: Berlin, Germany
Contact:

Post by *Sheepdog »

Seems to be a problem with the totalcmd.inc or rather with the current value of:

HKEY_CURRENT_USER\Software\Ghisler\Total Commander\InstallDir


That setting does not point to a directory where you can find the totalcmd.inc.

Just save the following text in a file named installdir.reg and adopt the path to your Total COmmander (pay attention to use double backslashes for the path "\\")
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Ghisler\Total Commander]
"InstallDir"="c:\\totalcmd"
Then doubleclick it and confirm that the value should be written to the registry. Then your bar file should work like a charm with TCMenu.

sheepdog
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
zbx
Junior Member
Junior Member
Posts: 20
Joined: 2006-04-07, 09:32 UTC

Post by *zbx »

2sheepdog:

Yeah! you are right!
I fixed my InstallDir to current TC folder, and all right!

Thank you very much!

If I put my TC on a CD-rom, use it on other PC,
I used %Commander_path% and UseIniInProgramDir=7 in my INI file, but...the InstallDir is not one place!

How should I do?
Take a reg file include the InstallDir, and fix it to right place and import to the registry everytime?

TCmenu & TCtoolbar could get .INC place form the registry only? Can't form the Strat Path?
User avatar
Sheepdog
Power Member
Power Member
Posts: 5150
Joined: 2003-12-18, 21:44 UTC
Location: Berlin, Germany
Contact:

Post by *Sheepdog »

zbx wrote: TCmenu & TCtoolbar could get .INC place form the registry only? Can't form the Strat Path?
Currentlly not, but AFAIK there'll be soon a new version that uses %Commander_path% instead. So you'll have to be a little patient.

(till then your regfiile-solution may suffice as workaround )

sheepdog
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
zbx
Junior Member
Junior Member
Posts: 20
Joined: 2006-04-07, 09:32 UTC

Post by *zbx »

Currentlly not, but AFAIK there'll be soon a new version that uses %Commander_path% instead. So you'll have to be a little patient.

(till then your regfiile-solution may suffice as workaround )

sheepdog
Now I see, thanks!

Waitting the new version...
User avatar
XPEHOPE3KA
Power Member
Power Member
Posts: 854
Joined: 2006-03-03, 18:23 UTC
Location: Saint-Petersburg, Russia

Post by *XPEHOPE3KA »

2VadiMGP
Your lister plugin WDXGuide doesn't seem to work.
It always says it couldn't load a plugin %COMMANDER_PATH%\Plugins\WDX\AudioInfo.wdx (126).
If I then switch to some other tab in your plugin, it says the same about all other plugins.
F6, Enter, Tab, F6, Enter, Tab, F6, Enter, Tab... - I like to move IT, move IT!..
User avatar
XPEHOPE3KA
Power Member
Power Member
Posts: 854
Joined: 2006-03-03, 18:23 UTC
Location: Saint-Petersburg, Russia

Post by *XPEHOPE3KA »

2VadiMGP
A request for TCMenu and TCToolbar as well.
It would be nice if you add a "Run minimized" possibility to the bar-entries, which run other programs.

Original request in Russian here.
F6, Enter, Tab, F6, Enter, Tab, F6, Enter, Tab... - I like to move IT, move IT!..
VadiMGP
Power Member
Power Member
Posts: 672
Joined: 2003-04-05, 12:11 UTC
Location: Israel

Post by *VadiMGP »

It would be nice if you add a "Run minimized" possibility to the bar-entries, which run other programs.
Do you mean "Run minimized/maximized" checkboxes? Yes, I'll take them into account in the next version.
User avatar
XPEHOPE3KA
Power Member
Power Member
Posts: 854
Joined: 2006-03-03, 18:23 UTC
Location: Saint-Petersburg, Russia

Post by *XPEHOPE3KA »

Yeah, I think he had meant them.
F6, Enter, Tab, F6, Enter, Tab, F6, Enter, Tab... - I like to move IT, move IT!..
zbx
Junior Member
Junior Member
Posts: 20
Joined: 2006-04-07, 09:32 UTC

Post by *zbx »

2VadiMGP:

The icon only two sizes: big(32) and small(16), I hope more sizes could be shown, such as 24/28... in new version.

Thanks!
User avatar
Sheepdog
Power Member
Power Member
Posts: 5150
Joined: 2003-12-18, 21:44 UTC
Location: Berlin, Germany
Contact:

Post by *Sheepdog »

Ever tried to type in another value instead of choosing one of the two defaults?

I haven't till I heard a few weeks ago that it's possible. Works fine here. I use 22 (wich automatically inserts 22x22).

sheepdog
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
zbx
Junior Member
Junior Member
Posts: 20
Joined: 2006-04-07, 09:32 UTC

Post by *zbx »

Sheepdog wrote:Ever tried to type in another value instead of choosing one of the two defaults?

I haven't till I heard a few weeks ago that it's possible. Works fine here. I use 22 (wich automatically inserts 22x22).

sheepdog
Hmm...22 shown in TCmenu's menu?
If I use -$, it's 16, no use, 32.
How to make it to 22?
User avatar
XPEHOPE3KA
Power Member
Power Member
Posts: 854
Joined: 2006-03-03, 18:23 UTC
Location: Saint-Petersburg, Russia

Post by *XPEHOPE3KA »

Sheepdog just got you wrong... TCMenu doesn't support these values yet.
F6, Enter, Tab, F6, Enter, Tab, F6, Enter, Tab... - I like to move IT, move IT!..
User avatar
Sheepdog
Power Member
Power Member
Posts: 5150
Joined: 2003-12-18, 21:44 UTC
Location: Berlin, Germany
Contact:

Post by *Sheepdog »

Sorry, I indeed got you wrong. I read 'icon size' and assumed immedately the icon size of the file window is meant that you can adjust with

Configuration->Options->Font:Symbol size

Sorry that I did not read carefully.

sheepdog
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
Post Reply