Page 1 of 2
CEA for a Toolbar Button set switch
Posted: 24 Mar 2024 17:21
by klownboy
Hi Don, with all the recent toolbar capabilities added it would be nice if there was a CEA for a toolbar switch. It wouldn't have to be smart, only an indicator that it happened. That is, we don't need to know the resultant toolbar button set number, only that the toolbar button set has been switched. Scripting can take care of the rest, like determining the button set number and making any changes based on that. We can make the toolbar change via the CID like #688, but we can't currently detect when the toolbar changes (i.e., the button set changes). It would be especially handy for detecting a button set change via scrolling. Thanks.
Re: CEA for a Toolbar Button set switch
Posted: 25 Mar 2024 22:23
by eil
+1 More CEAs for the god of customizability!
Re: CEA for a Toolbar Button set switch
Posted: 02 Apr 2024 14:18
by admin
Not necessary. Do the switching per script directly with the SC buttonset.
Re: CEA for a Toolbar Button set switch
Posted: 02 Apr 2024 14:56
by klownboy
I probably didn't word the request as clearly as I should have. I was really only interested in a CEA which picks up a toolbar button set switch accomplished via "scrolling". You are already detecting this scrolling "event" since you update the status bar when the button set is changed via scrolling. Yes, I can use the "Switch Toolbar Button set" button or use CTBs and User commands, but I can't script actions based on a toolbar button set change done by scrolling.
Re: CEA for a Toolbar Button set switch
Posted: 02 Apr 2024 15:08
by admin
What I'm saying is: Why wait for the event to happen when you can trigger it immediately along with whatever you want to happen next?
Re: CEA for a Toolbar Button set switch
Posted: 02 Apr 2024 15:51
by klownboy
Oh, I know what you're saying. Though I think scrolling is the nicest way to accomplish a button set change. I can't do a simple thing like have one my CTB buttons change to indicate the number of the button set you're current on when the button set change is done by scrolling.
Another idea might be, instead of having the current vertical dash lines used for the "Switch Toolbar Button set" button (on the left below), have that button change to the number of the button set.

- instead of current button on the left, have the button change to the button set number.jpg (1.63 KiB) Viewed 1710 times
Re: CEA for a Toolbar Button set switch
Posted: 02 Apr 2024 15:59
by admin
scrolling... what do you mean by that? Window | Arrangement | Switch Toolbar Button Set?
Re: CEA for a Toolbar Button set switch
Posted: 02 Apr 2024 16:21
by klownboy
With the mouse over the toolbar, you can "scroll" using the mouse wheel to the different button sets...great feature and easiest way to "Switch toolbar button sets".
Re: CEA for a Toolbar Button set switch
Posted: 03 Apr 2024 10:54
by admin
Oh, indeed!

I always have "Scrollable Toolbar" enabled (in which case your trick does not work) and I totally forgot that you can scroll through the button sets that way.
Anyway, currently I'm not into adding more CEAs.
Re: CEA for a Toolbar Button set switch
Posted: 03 Apr 2024 12:04
by klownboy
OK Don, no problem. In the meantime, I was able to detect a toolbar scroll using AHK and put the code in my AHK startup fie.
As I mentioned above though, I thought the having your button icon for "Switch toolbar button sets" actually change to the button set # was a cool idea (and not related to a CEA).
Re: CEA for a Toolbar Button set switch
Posted: 04 Apr 2024 10:39
by admin
I'm not sure if it looks so cool, depends on the font. And the info is already in the tooltip of that button. Also you could add a dummy button to each of your sets that is telling the number of the set as text.

Re: CEA for a Toolbar Button set switch
Posted: 04 Apr 2024 11:38
by klownboy
I think the boxed in number shown above looks
fine. Yes, I've already made a CTB which accomplishes that, but I thought it might be good as a built-in for anyone.

Re: CEA for a Toolbar Button set switch
Posted: 04 Apr 2024 18:51
by eil
admin wrote: ↑03 Apr 2024 10:54
Anyway, currently I'm not into adding more CEAs.
Those are real horrifying words, i'm still hoping for CEA_BeforeSwitchTabs to come.

Re: CEA for a Toolbar Button set switch
Posted: 04 Apr 2024 20:01
by klownboy
admin wrote: ↑03 Apr 2024 10:54
Anyway, currently I'm not into adding more CEAs.
But then he went ahead and added another CEA, "After rename" today in v25.80.0201,

just

Re: CEA for a Toolbar Button set switch
Posted: 04 Apr 2024 20:05
by admin
klownboy wrote: ↑04 Apr 2024 20:01
admin wrote: ↑03 Apr 2024 10:54
Anyway, currently I'm not into adding more CEAs.
But then he went ahead and added another CEA, "After rename" today in v25.80.0201,

just
Finally! I expected this remark earlier.
