Views - Toolbar button redefined

Features wanted...
Post Reply
Borut
Posts: 1464
Joined: 19 Oct 2010 19:29
Location: Win10 Pro 64b 22H2, @120DPI (125%)

Views - Toolbar button redefined

Post by Borut »

I would be happy if this button would be redefined so that:

Left click toggles between the last two different views used
Right click - no changes here - leave as is

Is it only me that wants to toggle between a detail view and a thumbnail view all the time when working in the image folders?
Win 10 Pro 64bit

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

Re: Views - Toolbar button redefined

Post by admin »

Borut wrote:Is it only me that wants to toggle between a detail view and a thumbnail view all the time when working in the image folders?
Me too. Therefore there is a special button to toggle between Details and Thumbs #1. :)

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

Re: Views - Toolbar button redefined

Post by Borut »

Ooops, haven't noticed it before, sorry.

Thanks! That does the job for me.
Win 10 Pro 64bit

kunkel321
Posts: 645
Joined: 10 Jun 2012 03:45
Location: Near Seattle

Re: Views - Toolbar button redefined

Post by kunkel321 »

I'm relatively new to XYplorer, and have been impressed with these little details. Lots of smart little features are built in as "Easter eggs." For example typing "> report" in the address bar and pressing enter, will highlight all the occurrences of [report] in any of the file/folder names.... Good stuff. 8) :biggrin:
ste(phen|ve) kunkel

eil
Posts: 1814
Joined: 13 Jan 2011 19:44

Re: Views - Toolbar button redefined

Post by eil »

maybe one can advice me something to be happy too, as i mostly use Large Icons - Thumbs #2 and there is no toggle for that.
besides, i find this 3 buttons kinda obsolete, 'cause whatever View one has, if clicked on it's option once more, it anyways switches to Details.
Win 7 SP1 x64 100% 1366x768|1900x1080

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

Re: Views - Toolbar button redefined

Post by FluxTorpedoe »

Hi'
eil wrote:i mostly use Large Icons - Thumbs #2 and there is no toggle for that.
Here's a simple button you could use:

Code: Select all

  if get("View") != 5 { // If not Thumbnails#2
    // Display Thumbnails#2
    #307;
  } else {
    // Display Large Icons
    #309
  }
Whatever the View you're in, it switches to Thumbs #2, and from there on, toggles between Large Icons and Thumbs #2.

Hope this helps, :)
Flux

eil
Posts: 1814
Joined: 13 Jan 2011 19:44

Re: Views - Toolbar button redefined

Post by eil »

FluxTorpedoe, just what i needed, thanks! :)
Win 7 SP1 x64 100% 1366x768|1900x1080

Slavaon
Posts: 158
Joined: 29 Mar 2012 07:35

Re: Views - Toolbar button redefined

Post by Slavaon »

FluxTorpedoe
Hello. I would change the script to switch type List-Restore Folder View

Code: Select all

  if get("View") != 5 { // If not List
    // Display List
    #304;
  } else {
    // Display Restore Folder View
    #478
  }
But switching between turns List-Details
Help correct the script.
Thanks. Have a nice day!

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

Re: Views - Toolbar button redefined

Post by FluxTorpedoe »

Hi'
Slavaon wrote:I would change the script to switch type List-Restore Folder View
You were nearly there. In the first line, you just have to change the 5 by a 2.

Code: Select all

  if get("View") != 2 { // If not List
    // Display List
    #304;
  } else {
    // Display Restore Folder View
    #478
  }
In the first line, to determine "If not List" (or "If not WhateverView"), you must know which number (2, 5, etc.) corresponds to which view.
TIP: (one way is to) type in the address bar "::echo get(View);" , you'll get a message with the number of the current view (e.g. "2" for List View).

Hope this helps :)
Flux

PeterH
Posts: 2826
Joined: 21 Nov 2005 20:39
Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%

Re: Views - Toolbar button redefined

Post by PeterH »

FluxTorpedoe wrote:Hi'
Slavaon wrote:I would change the script to switch type List-Restore Folder View
You were nearly there. In the first line, you just have to change the 5 by a 2.

Code: Select all

  if get("View") != 2 { // If not List
    // Display List
    #304;
  } else {
    // Display Restore Folder View
    #478
  }
In the first line, to determine "If not List" (or "If not WhateverView"), you must know which number (2, 5, etc.) corresponds to which view.
TIP: (one way is to) type in the address bar "::echo get(View);" , you'll get a message with the number of the current view (e.g. "2" for List View).

Hope this helps :)
Flux
...another way is to look into Help, for command get():

"View", [pane=a]
Returns the index of the current list view.
For the optional "pane" argument see "BytesSelected" above.
Possible returns and their meanings:
0 = Details
1 = Details with Thumbnails
2 = List
3 = Small Icons
4 = Thumbnails #1
5 = Thumbnails #2
6 = Thumbnails #3

Slavaon
Posts: 158
Joined: 29 Mar 2012 07:35

Re: Views - Toolbar button redefined

Post by Slavaon »

FluxTorpedoe
PeterH
Thank you. Works fine :appl:
I'm a newbie and don't know much.

PeterH
Posts: 2826
Joined: 21 Nov 2005 20:39
Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%

Re: Views - Toolbar button redefined

Post by PeterH »

Slavaon wrote:FluxTorpedoe
PeterH
Thank you. Works fine :appl:
I'm a newbie and don't know much.
So I think XY Help is just made for you :roll:


No - just fun! :lol:
When scripting the XY Help is something I always use!
(And not only for scripting :P )

I'd recommend this for every XY user! Really helpful! 8)
(And neccessary...)

Post Reply