Page 1 of 1

Toolbar Button

Posted: 07 Mar 2013 21:19
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.

Re: Toolbar Button

Posted: 07 Mar 2013 21:30
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?

Re: Toolbar Button

Posted: 07 Mar 2013 21:48
by highend
Something like that?

Code: Select all

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

Re: Toolbar Button

Posted: 07 Mar 2013 23:48
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;
}

Re: Toolbar Button

Posted: 07 Mar 2013 23:51
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?

Re: Toolbar Button

Posted: 08 Mar 2013 07:42
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.

Re: Toolbar Button

Posted: 08 Mar 2013 07:47
by admin
You could as well swap the Sizes in Confguration thumbs... and then use the existing button.

Re: Toolbar Button

Posted: 08 Mar 2013 08:37
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.

Re: Toolbar Button

Posted: 08 Mar 2013 09:14
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! :)

Re: Toolbar Button

Posted: 08 Mar 2013 14:46
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...

Re: Toolbar Button

Posted: 08 Mar 2013 17:58
by kgiddings
Is there a way to give a custom button a different icon?

Re: Toolbar Button

Posted: 08 Mar 2013 19:56
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"