Visual information for "Switch Toolbar Button Set".

Features wanted...
MindReader
Posts: 38
Joined: 06 Feb 2022 14:39
Location: W10, @100%

Visual information for "Switch Toolbar Button Set".

Post 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
Toggle Active Pane.png (22.91 KiB) Viewed 3662 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
Switch Toolbar Button Set.png (22.31 KiB) Viewed 3662 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.
I use "Google Translate" for my posts. If there are any unkind expressions in my posts, it is because my English is not good.
Please make sure my intentions are good.

admin
Site Admin
Posts: 65066
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Visual information for "Switch Toolbar Button Set".

Post by admin »

You mean in the tooltip, right?

klownboy
Posts: 4398
Joined: 28 Feb 2012 19:27
Location: Windows 11, 25H2 Build 26200.7171 at 100% 2560x1440

Re: Visual information for "Switch Toolbar Button Set".

Post 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-
----
----

MindReader
Posts: 38
Joined: 06 Feb 2022 14:39
Location: W10, @100%

Re: Visual information for "Switch Toolbar Button Set".

Post 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.
I use "Google Translate" for my posts. If there are any unkind expressions in my posts, it is because my English is not good.
Please make sure my intentions are good.

admin
Site Admin
Posts: 65066
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Visual information for "Switch Toolbar Button Set".

Post by admin »

I think it's overkill and wouldn't look good.

MindReader
Posts: 38
Joined: 06 Feb 2022 14:39
Location: W10, @100%

Re: Visual information for "Switch Toolbar Button Set".

Post 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.) :appl:
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
Toolbar Button Set - 01.png (29.66 KiB) Viewed 3570 times
Toolbar Button Set - 02.png
Toolbar Button Set - 02.png (31.83 KiB) Viewed 3570 times
Toolbar Button Set - 03.png
Toolbar Button Set - 03.png (32.89 KiB) Viewed 3570 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.) :whistle:
Thank you for your interest.
I use "Google Translate" for my posts. If there are any unkind expressions in my posts, it is because my English is not good.
Please make sure my intentions are good.

Horst
Posts: 1340
Joined: 24 Jan 2021 12:27
Location: Germany

Re: Visual information for "Switch Toolbar Button Set".

Post 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
Screenshot - 05.03.2022 , 22_29_30.png (22.21 KiB) Viewed 3554 times
Windows 11 Home, Version 25H2 (OS Build 26200.7309)
Portable x64 XYplorer (Actual version, including betas)
Display settings 1920 x 1080 Scale 100%
Everything 1.5.0.1402a (x64), Everything Toolbar 2.1.1, Listary Pro 6.3.6.99

jupe
Posts: 3292
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: Visual information for "Switch Toolbar Button Set".

Post by jupe »

Well you could already do that with scripting in XY too.

xy_tb.gif
xy_tb.gif (133.56 KiB) Viewed 3549 times

MindReader
Posts: 38
Joined: 06 Feb 2022 14:39
Location: W10, @100%

Re: Visual information for "Switch Toolbar Button Set".

Post 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. :)
I use "Google Translate" for my posts. If there are any unkind expressions in my posts, it is because my English is not good.
Please make sure my intentions are good.

MindReader
Posts: 38
Joined: 06 Feb 2022 14:39
Location: W10, @100%

Re: Visual information for "Switch Toolbar Button Set".

Post 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.
:cup:
I use "Google Translate" for my posts. If there are any unkind expressions in my posts, it is because my English is not good.
Please make sure my intentions are good.

Norn
Posts: 483
Joined: 24 Oct 2021 16:10

Re: Visual information for "Switch Toolbar Button Set".

Post by Norn »

Code: Select all

buttonset()
Attachments
ToolbarButton.png
ToolbarButton.png (26.63 KiB) Viewed 3515 times
ToolbarButton2.png
ToolbarButton2.png (3.45 KiB) Viewed 3515 times
Windows 11 24H2 @100% 2560x1440

MindReader
Posts: 38
Joined: 06 Feb 2022 14:39
Location: W10, @100%

Re: Visual information for "Switch Toolbar Button Set".

Post 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.
I use "Google Translate" for my posts. If there are any unkind expressions in my posts, it is because my English is not good.
Please make sure my intentions are good.

admin
Site Admin
Posts: 65066
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Visual information for "Switch Toolbar Button Set".

Post 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

klownboy
Posts: 4398
Joined: 28 Feb 2012 19:27
Location: Windows 11, 25H2 Build 26200.7171 at 100% 2560x1440

Re: Visual information for "Switch Toolbar Button Set".

Post 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=24319

Code: 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);

MindReader
Posts: 38
Joined: 06 Feb 2022 14:39
Location: W10, @100%

Re: Visual information for "Switch Toolbar Button Set".

Post 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.
:)
I use "Google Translate" for my posts. If there are any unkind expressions in my posts, it is because my English is not good.
Please make sure my intentions are good.

Post Reply