A Windows Message to tell TC to Refresh its display

English support forum

Moderators: Hacker, petermad, Stefan2, white

JKK
Junior Member
Junior Member
Posts: 13
Joined: 2013-05-13, 13:24 UTC

A Windows Message to tell TC to Refresh its display

Post by *JKK »

Good day

Is there a Windows Message (WM_) which Total Commander responds to by refreshing its display (the file lists). It should allow a developer to send that message to Total Commander whenever the developer wants TC to refresh its display.

Thank You
User avatar
Flint
Power Member
Power Member
Posts: 3511
Joined: 2003-10-27, 09:25 UTC
Location: Belgrade, Serbia
Contact:

Post by *Flint »

JKK
You can send message with ID equal to WM_USER+51 with wParam set to the code of any internal TC command, e.g. 540 for cm_RereadSource. However, this will refresh only the contents of the active panel. If you need to refresh both panels, you have to send a sequence of commands, like, for instance, TCMC tool does.
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
 
Using TC 11.03 / Win10 x64
JKK
Junior Member
Junior Member
Posts: 13
Joined: 2013-05-13, 13:24 UTC

Post by *JKK »

Flint wrote:JKK
You can send message with ID equal to WM_USER+51 with wParam set to the code of any internal TC command, e.g. 540 for cm_RereadSource. However, this will refresh only the contents of the active panel. If you need to refresh both panels, you have to send a sequence of commands, like, for instance, TCMC tool does.
Sweet!

I will try it out and let you know how it goes.

Thanks for the input
JKK
Junior Member
Junior Member
Posts: 13
Joined: 2013-05-13, 13:24 UTC

Post by *JKK »

Is there a list somewhere of these internal commands with their values and meanings?
JKK
Junior Member
Junior Member
Posts: 13
Joined: 2013-05-13, 13:24 UTC

Post by *JKK »

JKK wrote:Is there a list somewhere of these internal commands with their values and meanings?
I actually found it. It seems they are all listed in the totalcmd.inc file inside the folder where you installed TC. Super Cool!
User avatar
Flint
Power Member
Power Member
Posts: 3511
Joined: 2003-10-27, 09:25 UTC
Location: Belgrade, Serbia
Contact:

Post by *Flint »

JKK
Moreover, they are listed right in TC itself when you customize buttonbars, keyboard shortcuts, etc. :)
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
 
Using TC 11.03 / Win10 x64
JKK
Junior Member
Junior Member
Posts: 13
Joined: 2013-05-13, 13:24 UTC

Post by *JKK »

Flint wrote:JKK
Moreover, they are listed right in TC itself when you customize buttonbars, keyboard shortcuts, etc. :)
Excellent! I get more impressed by TC the more I use it.

I use two separate trees, in other words two tree panels and a file panel for each and there are a few irritations using them but I will wait for later releases and if they persist I will let Ghisler know.

Thanks again
User avatar
ts4242
Power Member
Power Member
Posts: 2081
Joined: 2004-02-02, 20:08 UTC
Contact:

Post by *ts4242 »

JKK wrote:I use two separate trees, in other words two tree panels and a file panel for each and there are a few irritations using them but I will wait for later releases and if they persist I will let Ghisler know.
Why do you want to wait for the new release?

If you dislike your current layout, you can change it now, there are many options you can choose from:
1- One panel (set the other to 0%)
2- One tree, one panel (cm_SrcTree)
3- One tree, two panels (cm_SeparateTree1)
4- Two trees, two panel (your current layout)
5- Three trees, one panel (cm_SrcTree, cm_SeparateTree1 and cm_SeparateTree2)
6- Four trees (cm_RightTree, cm_LeftTree, cm_SeparateTree1 and cm_SeparateTree2)
JKK
Junior Member
Junior Member
Posts: 13
Joined: 2013-05-13, 13:24 UTC

Post by *JKK »

ts4242 wrote:Why do you want to wait for the new release?

If you dislike your current layout, you can change it now, there are many options you can choose from:
1- One panel (set the other to 0%)
2- One tree, one panel (cm_SrcTree)
3- One tree, two panels (cm_SeparateTree1)
4- Two trees, two panel (your current layout)
5- Three trees, one panel (cm_SrcTree, cm_SeparateTree1 and cm_SeparateTree2)
6- Four trees (cm_RightTree, cm_LeftTree, cm_SeparateTree1 and cm_SeparateTree2)
It is not the capabilities to have multiple tree views but rather how little things irritate when using the tree views. One example would be the mouse wheel scrolling inside a tree view. I also have possible feature requests for tree views but will post those later.
User avatar
ts4242
Power Member
Power Member
Posts: 2081
Joined: 2004-02-02, 20:08 UTC
Contact:

Post by *ts4242 »

JKK wrote:One example would be the mouse wheel scrolling inside a tree view.
Cannot you use wheel scrolling inside a tree view? It is work here!
JKK
Junior Member
Junior Member
Posts: 13
Joined: 2013-05-13, 13:24 UTC

Post by *JKK »

ts4242 wrote:Cannot you use wheel scrolling inside a tree view? It is work here!
:D It seems that you are quite adamant in helping me out here. :D

What irritates me with the mouse wheel scroll in the tree view is that if I click on a folder in the tree view TC will set the focus to the attached file pane thus leaving the tree view and not allowing me to immediately use the mouse wheel on it. I have to click again on the same folder in the tree view. Then only will the focus stay on that tree view and I can then mouse wheel scroll. As I said it is a small irritation but still an irritation unless I am missing a setting where I can disable that behaviour.

I have not documented all these issues yet and will post them on the forums a soon as I have. It is not a train smash to me as I love TC and I am still very much satisfied using it.
User avatar
ts4242
Power Member
Power Member
Posts: 2081
Joined: 2004-02-02, 20:08 UTC
Contact:

Post by *ts4242 »

JKK wrote:What irritates me with the mouse wheel scroll in the tree view is that if I click on a folder in the tree view TC will set the focus to the attached file pane thus leaving the tree view and not allowing me to immediately use the mouse wheel on it. I have to click again on the same folder in the tree view.
This is strange behavior, here the tree view doesn't lost the focus after click on a folder.
Maybe you have third party tool or script cause that.
JKK
Junior Member
Junior Member
Posts: 13
Joined: 2013-05-13, 13:24 UTC

Post by *JKK »

ts4242 wrote:This is strange behavior, here the tree view doesn't lost the focus after click on a folder.
Maybe you have third party tool or script cause that.
No scripts or third party tools installed.

I am using TC 7.04. Which version are you using. Maybe I should upgrade. That is also the reason that I said I will first upgrade to a later version and then see what still bugs me.
User avatar
ts4242
Power Member
Power Member
Posts: 2081
Joined: 2004-02-02, 20:08 UTC
Contact:

Post by *ts4242 »

I'm using the latest version 8.01, you can download from here http://www.ghisler.com/download.htm
JKK
Junior Member
Junior Member
Posts: 13
Joined: 2013-05-13, 13:24 UTC

Post by *JKK »

ts4242 wrote:I'm using the latest version 8.01, you can download from here http://www.ghisler.com/download.htm
Yip! You convinced me! :wink:

Let me upgrade. Will check quickly.
Post Reply