Buttonbar temporally disable button: Make button hidden
Moderators: Hacker, petermad, Stefan2, white
- Vochomurka
- Power Member
- Posts: 816
- Joined: 2005-09-14, 22:19 UTC
- Location: Russia
- Contact:
Buttonbar temporally disable button: Make button hidden
Sometimes a button (or even buttons) on a buttonbar get useless and only take place. But the user knows that after a specific time (weeks, months, hardly years) they definitely (or probably) will be useful again. Now there are two solutions:
1) Create some text file with button images (TOTALCMD#BAR#DATA...) and save all images there, until they get necessary. But the more numerous they are, the harder is to find some specific button;
2) Create some waste.bar and cut/paste buttons there from working (active) buttonbar. It's rather easy with one button and causes troubles with several (even using script).
I use solution 2 and my waste bar counts 98 buttons. This solution seems better because the user can either load the bar and look at icons, or open the *.bar file and find the text. But when number of buttons grows, both ways get time consuming...
My suggestion is to add checkbox "Hidden" in the button bar edit dialog (cm_ButtonConfig).
If the "Hidden" (or "Disable") checkbox is checked, this button is not visible on buttonbar in "click mode", but is definitely visible in "edit mode" (cm_ButtonConfig). More, in edit dialog the hidden button can be dimmed, crossed out, or marked some other visual way, beside the checkbox
1) Create some text file with button images (TOTALCMD#BAR#DATA...) and save all images there, until they get necessary. But the more numerous they are, the harder is to find some specific button;
2) Create some waste.bar and cut/paste buttons there from working (active) buttonbar. It's rather easy with one button and causes troubles with several (even using script).
I use solution 2 and my waste bar counts 98 buttons. This solution seems better because the user can either load the bar and look at icons, or open the *.bar file and find the text. But when number of buttons grows, both ways get time consuming...
My suggestion is to add checkbox "Hidden" in the button bar edit dialog (cm_ButtonConfig).
If the "Hidden" (or "Disable") checkbox is checked, this button is not visible on buttonbar in "click mode", but is definitely visible in "edit mode" (cm_ButtonConfig). More, in edit dialog the hidden button can be dimmed, crossed out, or marked some other visual way, beside the checkbox
Single user license #329241
PowerPro scripts for Total Commander
PowerPro scripts for Total Commander
- sqa_wizard
- Power Member
- Posts: 3896
- Joined: 2003-02-06, 11:41 UTC
- Location: Germany
- Vochomurka
- Power Member
- Posts: 816
- Joined: 2005-09-14, 22:19 UTC
- Location: Russia
- Contact:
2sqa_wizard
Yes, but it would be hard to find a corresponding icon when the button will be re-used.
There is another somewhat perverted solution:
1) Move the button to the very end of the button bar;
2) Open the corresponding *.bar file;
3) Reduce the "Buttoncount" key value by 1
Sure some other solutions can be found. I just suggest to add a simple feature to TC that makes all of them useless
Yes, but it would be hard to find a corresponding icon when the button will be re-used.
There is another somewhat perverted solution:
1) Move the button to the very end of the button bar;
2) Open the corresponding *.bar file;
3) Reduce the "Buttoncount" key value by 1
Sure some other solutions can be found. I just suggest to add a simple feature to TC that makes all of them useless
Single user license #329241
PowerPro scripts for Total Commander
PowerPro scripts for Total Commander
- ghisler(Author)
- Site Admin
- Posts: 50873
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
You can use a secondary button bar, and then just use cut+paste to move the rarely used buttons there. I have a single row main bar, plus a two row secondary bar for rarely used functions.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
- Vochomurka
- Power Member
- Posts: 816
- Joined: 2005-09-14, 22:19 UTC
- Location: Russia
- Contact:
Lucky you: I have 219 bars with 3486 buttons in totalghisler(Author) wrote:I have a single row main bar, plus a two row secondary bar for rarely used functions

As you've seen, there are many (at least 4) solutions to hide a button. But all of them are not handy, especially if you need to hide several buttons. If adding the "Hide" checkbox is not difficult, please do it. One who does need this option will never use it.
Thank you anyway
Single user license #329241
PowerPro scripts for Total Commander
PowerPro scripts for Total Commander
- Vochomurka
- Power Member
- Posts: 816
- Joined: 2005-09-14, 22:19 UTC
- Location: Russia
- Contact:
In such case button gets empty rather than hiddents icon path starts with a hyphen "-"
Single user license #329241
PowerPro scripts for Total Commander
PowerPro scripts for Total Commander