Hiding combobox-related buttons and drive size indicator

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
pyr4m1d
New Member
New Member
Posts: 1
Joined: 2023-04-12, 09:21 UTC

Hiding combobox-related buttons and drive size indicator

Post by *pyr4m1d »

Hello! Can anyone let me know how to hide the elements marked by red in the picture? Thank you!
Image: https://ibb.co/CsnRng0
User avatar
petermad
Power Member
Power Member
Posts: 15479
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Hiding combobox-related buttons and drive size indicator

Post by *petermad »

2pyr4m1d
Those elements can only be hidden by disabling showing of both "drive combobox" and "drive buttons".
License #524 (1994)
Danish Total Commander Translator
TC 11.50b4 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1383a
TC 3.60b4 on Android 6, 13 & 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Fla$her
Power Member
Power Member
Posts: 2586
Joined: 2020-01-18, 04:03 UTC

Re: Hiding combobox-related buttons and drive size indicator

Post by *Fla$her »

2pyr4m1d
I don't know about the buttons on the right (they are drawn separately like toolbar buttons), but you can hide the drive space panel.
For example, on AutoIt for TC x32:

Code: Select all

Opt('TrayIconHide', 1)
If WinActive('[CLASS:TTOTAL_CMD]') Then
   $hwnd = WinGetHandle('')
Else
   $hwnd = WinWaitActive('[CLASS:TTOTAL_CMD]')
EndIf

Dim $c
;While 1
For $i = 1 To 10
   If StringRegExp(ControlGetText($hwnd, '', '[CLASS:TMyPanel; INSTANCE:' & $i & ']'), '^\[.+]') Then
      $c += 1
      ControlHide($hwnd, '', ControlGetHandle($hwnd, '', '[CLASS:TMyPanel; INSTANCE:' & $i & ']'))
      If $c = 2 Then ExitLoop
   EndIf
Next
;Sleep(1000)
;WEnd
Uncomment 3 lines if you need them to be hidden also after executing cm_VisDriveButtons, cm_VisTwoDriveButtons or cm_VisDriveCombo.

A partial solution may be to change the keys in the current Language\*.LNG:

Code: Select all

657="\n"
658="\n"
But in this case, there will be one character '[', albeit you will not have to use the script.
Overquoting is evil! 👎
Fla$her
Power Member
Power Member
Posts: 2586
Joined: 2020-01-18, 04:03 UTC

Re: Hiding combobox-related buttons and drive size indicator

Post by *Fla$her »

petermad wrote: 2023-04-12, 18:50 UTC and "drive buttons".
It's possible not to hide this panel if this setting is specified:

Code: Select all

[Configuration]
DriveBarHide=-
Overquoting is evil! 👎
User avatar
petermad
Power Member
Power Member
Posts: 15479
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Hiding combobox-related buttons and drive size indicator

Post by *petermad »

Fla$her wrote: 2023-12-24, 16:42 UTC It's possible not to hide this panel if this setting is specified:

Code: Select all

[Configuration]
DriveBarHide=-
Hmm, that does not fully work here - the [\] and [..] buttons are still shown with that option (and DriveCombo=0) - but is is correct that the "volume label and free/total space" is removed with DriveBarHide=- (and DriveCombo=0)

If you want to also remove the parent and root dir buttons (as originally requested in the first post), then you need to add a period to the parameter:

Code: Select all

DriveBarHide=-.
License #524 (1994)
Danish Total Commander Translator
TC 11.50b4 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1383a
TC 3.60b4 on Android 6, 13 & 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Fla$her
Power Member
Power Member
Posts: 2586
Joined: 2020-01-18, 04:03 UTC

Re: Hiding combobox-related buttons and drive size indicator

Post by *Fla$her »

Oh, of course. I had already forgotten that these buttons were underlined in the screenshot.

This is how the toggle button looks (you can make em_Vis.. if desired):

Code: Select all

TOTALCMD#BAR#DATA
%COMMANDER_PATH%\Addons\TCFS2\TCFS2.exe /ef if(tcini(Configuration,DriveBarHide,`.-`),set_tcini(Configuration,DriveBarHide),set_tcini(Configuration,DriveBarHide,`.-`)) msg($0B,0) for(tcm(2902,1),0,1) tcm(2918) msg($0B,1) redraw()

wciconex.dll,267
Show/hide free drive space and buttons to change to root/parent directory
+ wincmd.ini:

Code: Select all

[Layout]
DriveCombo=0
Overquoting is evil! 👎
Post Reply