Page 1 of 1

Copy Toolbar Button Sets [Tool Bar / QoL]

Posted: 03 Nov 2024 11:38
by Garonne
Hi Dan,

do you think it's possible / plausible to add a copy option (or import / export) to the Toolbar Editing Window so I can copy my Button Set #1 to Set #2 (#3, #4) so I can have multiple Toolbar Button Sets that only vary by some "special" Buttons, while the main part stays the same?

I honestly don't care if you add a "Copy Buttons" option or if you do "Import / Export" as (at least for me) both serve the same purpose (though Import / Export may have way more use cases than just copying).

Re: Copy Toolbar Button Sets [Tool Bar / QoL]

Posted: 04 Nov 2024 09:23
by Horst
The toolbar sets are simple text files.
You can edit or copy them.

Re: Copy Toolbar Button Sets [Tool Bar / QoL]

Posted: 04 Nov 2024 09:57
by admin
See scripting command toolbar(), for example:

Code: Select all

toolbar(toolbar(), 2:=2);  //set button set #2 to current button set
toolbar(toolbar(2:=3));  //set current button set to button set #3

Re: Copy Toolbar Button Sets [Tool Bar / QoL]

Posted: 18 Nov 2024 15:53
by Garonne
admin wrote: 04 Nov 2024 09:57 See scripting command toolbar(), for example:

Code: Select all

toolbar(toolbar(), 2:=2);  //set button set #2 to current button set
toolbar(toolbar(2:=3));  //set current button set to button set #3
Oh, thanks. I'm sadly not very comfortable with scripting, but I guess that's not too complicated.

Got to check that command.
Horst wrote: 04 Nov 2024 09:23 The toolbar sets are simple text files.
You can edit or copy them.
Oh? You know where to find them?

Re: Copy Toolbar Button Sets [Tool Bar / QoL]

Posted: 18 Nov 2024 17:07
by Horst
Garonne wrote: 18 Nov 2024 15:53
Horst wrote: 04 Nov 2024 09:23 The toolbar sets are simple text files.
You can edit or copy them.
Oh? You know where to find them?
In my portable XY it's under
C:\Tools\XYplorer\Data\Toolbars\
In a normal setup it will be under your AppData I guess.