Toolbar Button

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
kgiddings
Posts: 4
Joined: 28 Feb 2013 03:34

Toolbar Button

Post by kgiddings »

Is it possible to create a user defined button that changes the view to thumbnail size #3? I found toolbar buttons for list, detail and other
views. I know there is a button that has a drop of the different views but I am looking for a quick single right click to change to thumbnails
and have a detail view button right beside it to change back. Also what file are the toolbar icons contained is so I can use some of them for
custom toolbar buttons.

j_c_hallgren
XY Blog Master
Posts: 5826
Joined: 02 Jan 2006 19:34
Location: So. Chatham MA/Clearwater FL
Contact:

Re: Toolbar Button

Post by j_c_hallgren »

Hi and welcome to the XY forums!

Maybe I'm missing something but isn't the ability to change views to any option available via the right click on std Details TB and its siblings? Or you can swap the size avail via #3 and #1 in Config and then use the Thumbnails TB one, right?
Still spending WAY TOO much time here! But it's such a pleasure helping XY be a treasure!
(XP on laptop with touchpad and thus NO mouse!) Using latest beta vers when possible.

highend
Posts: 15016
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Toolbar Button

Post by highend »

Something like that?

Code: Select all

	$trigger = get("trigger");
	if($trigger == 2) {
		#308;
	} elseif($trigger == 1) {
		#303;
	}
One of my scripts helped you out? Please donate via Paypal

kgiddings
Posts: 4
Joined: 28 Feb 2013 03:34

Re: Toolbar Button

Post by kgiddings »

I hate to ask but I'm trying to figure out scripting in xyplorer and would like to know what the script is doing. Can you explain. From reading I would assume the trigger == 1 and 2 are the button being pressed to turn on and off to switch between displays. I changed 303 to 308 to get thumbnail size 3 when clicked and when I click it again it goes to details view. What does the 308 do? I've changed it to various number such as 302, 303, 304, etc and it doesnt change anything. Also is there a reference to what the 30x numbers mean? Thank you for your help!

$trigger = get("trigger");
if($trigger == 2) {
#308;
} elseif($trigger == 1) {
#303;
}

kgiddings
Posts: 4
Joined: 28 Feb 2013 03:34

Re: Toolbar Button

Post by kgiddings »

Call me lazy but I was trying to do the switch with a left click because it would do it in one step and I am switching views a lot during the day. I do like you option of chaning the #1 view size. I didn't think of that. Thank you!

j_c_hallgren wrote:Hi and welcome to the XY forums!

Maybe I'm missing something but isn't the ability to change views to any option available via the right click on std Details TB and its siblings? Or you can swap the size avail via #3 and #1 in Config and then use the Thumbnails TB one, right?

highend
Posts: 15016
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Toolbar Button

Post by highend »

trigger = 2: button click with right mouse button
trigger = 1: left mouse button

#308 View | Views | Thumbnails #3 (128x96)

Go to Menu:
Tools -> Customize Keyboard Shortcuts...

Klick on "Jump..."

Enter #30

To see the relevant entries and what they mean.
One of my scripts helped you out? Please donate via Paypal

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

Re: Toolbar Button

Post by admin »

You could as well swap the Sizes in Confguration thumbs... and then use the existing button.

j_c_hallgren
XY Blog Master
Posts: 5826
Joined: 02 Jan 2006 19:34
Location: So. Chatham MA/Clearwater FL
Contact:

Re: Toolbar Button

Post by j_c_hallgren »

admin wrote:You could as well swap the Sizes in Confguration thumbs... and then use the existing button.
:roll: Ummmm...That's what I had suggested in my original post and he noted in his reply as seen here:
kgiddings wrote: I do like you option of chaning the #1 view size. I didn't think of that. Thank you!
j_c_hallgren wrote:Or you can swap the size avail via #3 and #1 in Config and then use the Thumbnails TB one, right?
But I think he was also wondering if he could do same via script and using only one button but right vs left clicks to swap detail/thumb views.
Still spending WAY TOO much time here! But it's such a pleasure helping XY be a treasure!
(XP on laptop with touchpad and thus NO mouse!) Using latest beta vers when possible.

FluxTorpedoe
Posts: 906
Joined: 05 Oct 2011 13:15

Re: Toolbar Button

Post by FluxTorpedoe »

Hi'
I hope it's not OffTopic. I'm using very regularly a CTB to toggle between thumbnail modes, but I still struggle with an old problem when you want to toggle quickly:
How to stop the process of thumbnail creation, to toggle to the next view?

Here's the original thread with a better explanation:
Thumbnail Switcher - Q: How to overcome bkg process?

If anyone has an idea, that'd be more than welcome, thank you! :)

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

Re: Toolbar Button

Post by admin »

j_c_hallgren wrote:
admin wrote:You could as well swap the Sizes in Confguration thumbs... and then use the existing button.
:roll: Ummmm...That's what I had suggested in my original post ...
Aaahhhhhhh. It's really time for a break...

kgiddings
Posts: 4
Joined: 28 Feb 2013 03:34

Re: Toolbar Button

Post by kgiddings »

Is there a way to give a custom button a different icon?

Borut
Posts: 1472
Joined: 19 Oct 2010 19:29
Location: Win10 Pro 64b 22H2, @120DPI (125%)

Re: Toolbar Button

Post by Borut »

If you copy-paste this line into address bar and press enter, you will see a help paragraph about user button icons:

Code: Select all

::help "idh_toolbar.htm#idh_ctb"
Win 10 Pro 64bit

Post Reply