Page 1 of 2
Visual information for "Switch Toolbar Button Set".
Posted: 01 Mar 2022 00:39
by MindReader
1) We activate the desired panel with one click.
2) We can also see which panel we are on from the number on the button in the Tolbar.

- Toggle Active Pane.png (22.91 KiB) Viewed 3668 times
The property in "1)" has been applied exactly to "Toolbar Button Set".
However, feature number "2)" is not available in "Toolbar Button Set".

- Switch Toolbar Button Set.png (22.31 KiB) Viewed 3668 times
I would be happy if you could show the numbers indicating the set it belongs to on the "Switch Toolbar Button Set" button.
Thanks.
Re: Visual information for "Switch Toolbar Button Set".
Posted: 04 Mar 2022 12:14
by admin
You mean in the tooltip, right?
Re: Visual information for "Switch Toolbar Button Set".
Posted: 04 Mar 2022 16:38
by klownboy
Let the OP answer, but I think he may mean, superimpose the toolbar set#1, 2, 3, or 4 on the icon itself. Like this crude depiction.
----
----
-2-
----
----
Re: Visual information for "Switch Toolbar Button Set".
Posted: 04 Mar 2022 17:32
by MindReader
admin wrote: ↑04 Mar 2022 12:14
You mean in the tooltip, right?
I didn't mean the tooltip.
I meant the number on the button.
I want to see numerically which "Toolbar Button Set" is active.
As shown numerically for "Active Pane".
I wish the number that appears on each click changes.
Better ideas would please me more.
Thanks.
Re: Visual information for "Switch Toolbar Button Set".
Posted: 04 Mar 2022 18:30
by admin
I think it's overkill and wouldn't look good.
Re: Visual information for "Switch Toolbar Button Set".
Posted: 05 Mar 2022 18:50
by MindReader
admin wrote: ↑04 Mar 2022 18:30
I think it's overkill and wouldn't look good.
I added a "User Button" to each toolbar.
I also defined symbols containing numbers for the buttons I added.
(Thanks to @kunkel321.)
Thus, I can easily understand which toolbar I am on.
You can see it if you look at the pictures.
I don't think it looks bad.
However, it does not contain the function,
It contains information only.

- Toolbar Button Set - 01.png (29.66 KiB) Viewed 3576 times

- Toolbar Button Set - 02.png (31.83 KiB) Viewed 3576 times

- Toolbar Button Set - 03.png (32.89 KiB) Viewed 3576 times
I don't think it's necessary to put the numbers on top of each other.
It is enough to show only one of the 4 different numbers.
As you click, the numbers will change and define the toolbar it belongs to.
I think this is possible.
(This is how the "Toggle Active Pane" button works.)
Thank you for your interest.
Re: Visual information for "Switch Toolbar Button Set".
Posted: 05 Mar 2022 22:31
by Horst
I like it and have similar design in my Total Commander setup.
Pressing the number button shows a pull-down with the other available toolbars and I can press one of it of course.

- Screenshot - 05.03.2022 , 22_29_30.png (22.21 KiB) Viewed 3560 times
Re: Visual information for "Switch Toolbar Button Set".
Posted: 05 Mar 2022 22:54
by jupe
Well you could already do that with scripting in XY too.

- xy_tb.gif (133.56 KiB) Viewed 3555 times
Re: Visual information for "Switch Toolbar Button Set".
Posted: 05 Mar 2022 23:26
by MindReader
Horst wrote: ↑05 Mar 2022 22:31
I like it and have similar design in my Total Commander setup.
Pressing the number button shows a pull-down with the other available toolbars and I can press one of it of course.
Screenshot - 05.03.2022 , 22_29_30.png
Thank you for explaining that you agree with me. 
Re: Visual information for "Switch Toolbar Button Set".
Posted: 05 Mar 2022 23:54
by MindReader
jupe wrote: ↑05 Mar 2022 22:54
Well you could already do that with scripting in XY too.
xy_tb.gif
I am not a scripter.
But I like to use XYplorer.
It is clear from the gif that you have already written a script for this topic.
I don't understand why you didn't share.
There must be a reason.
So I respect that you don't share. 
Re: Visual information for "Switch Toolbar Button Set".
Posted: 06 Mar 2022 10:06
by Norn
Re: Visual information for "Switch Toolbar Button Set".
Posted: 06 Mar 2022 21:20
by MindReader
@Norn,
Thank you for the script template.
I was able to customize it for myself.
It works fine and I started using it.
Thanks again.
Re: Visual information for "Switch Toolbar Button Set".
Posted: 07 Mar 2022 12:25
by admin
You don't need number graphics. This button script shows the current button set index and cycles the buttons sets. Most convenient when used as left-most button of each button set.
Code: Select all
Snip: CTB 1
XYplorer 22.90.0106, 07.03.2022 12:24:18
Action
NewUserButton
Name
Cycle Button Sets
Icon
label: 1 >554433,ffffee
ScriptL
// cycle button sets
ButtonSet(-1);
$n = ButtonSet();
ctbicon("label: $n >554433,ffffee");
ScriptR
ScriptM
FireClick
0
Re: Visual information for "Switch Toolbar Button Set".
Posted: 07 Mar 2022 16:57
by klownboy
You might as well change the CTB name on the toolbar set changes too along with the icon (see below). If we had a CEA for toolbar scrolling, we could detect the toolbar button set change and have that indicator change when scrolling. It would also allow us to accomplish other layout changes dependent on the toolbar set #.
viewtopic.php?f=5&t=24319Code: Select all
//*** On first run only, determine & set CTB index [$ctbindex below] based on CTB name
//*** So we can use this in a UDC as well as a CTB
//*** This version is intended to be used as a script "file" OR add your $ctbindex yourself manually and delete the everything up front until ButtonSet...
$ctbindex = "unknown";
if($ctbindex LikeI "unknown") {
$self = self("file");
$toolbar = toolbar();
$name_CTB = ctbname();
foreach($button, $toolbar, ",") {
if(substr($button, 0, 3) LikeI "ctb") {
$ctbI = trim($button, "ctb", "L");
if(ctbname( , $ctbI) == "$name_CTB") {
$ctbindex = $ctbI; break;
}
}
}
$content = replace(readfile($self), "unknown", "$ctbindex", , 1, 1);
writefile($self, $content);
}
ButtonSet(-1);
$n = ButtonSet();
ctbname("Toolbar Set #" . $n, $ctbindex);
ctbicon("label: $n >554433,FFF2F2", $ctbindex);
Re: Visual information for "Switch Toolbar Button Set".
Posted: 10 Mar 2022 23:38
by MindReader
admin wrote: ↑07 Mar 2022 12:25
You don't need number graphics. This button script shows the current button set index and cycles the buttons sets. Most convenient when used as left-most button of each button set.
Code: Select all
Snip: CTB 1
XYplorer 22.90.0106, 07.03.2022 12:24:18
Action
NewUserButton
Name
Cycle Button Sets
Icon
label: 1 >554433,ffffee
ScriptL
// cycle button sets
ButtonSet(-1);
$n = ButtonSet();
ctbicon("label: $n >554433,ffffee");
ScriptR
ScriptM
FireClick
0
I implemented your suggestion.
However, I did not get results.
Left-clicking opens a list.
None of the lines work.
"The Buttons Sets" cycles do not happen.
As I understand it, we have to fill the content ourselves.
I was able to customize Norn's suggestion for myself.
But Norn's script was more intuitive.
I failed to implement your suggestion.
Because I'm not a scripter.
I would appreciate it if you could explain how I can use it. 