Hiding combobox-related buttons and drive size indicator
Moderators: Hacker, petermad, Stefan2, white
Hiding combobox-related buttons and drive size indicator
Hello! Can anyone let me know how to hide the elements marked by red in the picture? Thank you!
Image: https://ibb.co/CsnRng0
Image: https://ibb.co/CsnRng0
Re: Hiding combobox-related buttons and drive size indicator
2pyr4m1d
Those elements can only be hidden by disabling showing of both "drive combobox" and "drive buttons".
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
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
Re: Hiding combobox-related buttons and drive size indicator
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:
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:
But in this case, there will be one character '[', albeit you will not have to use the script.
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
A partial solution may be to change the keys in the current Language\*.LNG:
Code: Select all
657="\n"
658="\n"
Overquoting is evil! 👎
Re: Hiding combobox-related buttons and drive size indicator
It's possible not to hide this panel if this setting is specified:
Code: Select all
[Configuration]
DriveBarHide=-
Overquoting is evil! 👎
Re: Hiding combobox-related buttons and drive size indicator
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)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=-
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
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
Re: Hiding combobox-related buttons and drive size indicator
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):
+ wincmd.ini:
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
Code: Select all
[Layout]
DriveCombo=0
Overquoting is evil! 👎