Change between list view types with the scroll wheel

Features wanted...
phitsc
Posts: 124
Joined: 05 May 2009 12:21

Change between list view types with the scroll wheel

Post by phitsc »

Is quickly changing between the different list view types with the scroll wheel already possible? (like Vista's File Explorer or QTTabBar do it with the Ctrl key pressed). I see Ctrl + Scroll wheel changes the font size in XYplorer.

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

Re: Change between list view types with the scroll wheel

Post by admin »

What happens with thumbnails when you are wheeling along?

phitsc
Posts: 124
Joined: 05 May 2009 12:21

Re: Change between list view types with the scroll wheel

Post by phitsc »

admin wrote:What happens with thumbnails when you are wheeling along?
They get gradually resized. The view changes from Tiles to Details to List to Small Icons, then gradually up to Extra Large Icons. With the View button in the tool bar you can choose between Small Icons, Medium Icons, Large Icons and Extra Large Icons for the icons views. Ctrl + Mouse wheel is as if you'd move the slider you can see on the left.
Vista Explorer Views.png
To see the attached files, you need to log into the forum.

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

Re: Change between list view types with the scroll wheel

Post by admin »

phitsc wrote:
admin wrote:What happens with thumbnails when you are wheeling along?
They get gradually resized. The view changes from Tiles to Details to List to Small Icons, then gradually up to Extra Large Icons. With the View button in the tool bar you can choose between Small Icons, Medium Icons, Large Icons and Extra Large Icons for the icons views. Ctrl + Mouse wheel is as if you'd move the slider you can see on the left.
Vista Explorer Views.png
This can only work if the thumbnails have been cached before.

phitsc
Posts: 124
Joined: 05 May 2009 12:21

Re: Change between list view types with the scroll wheel

Post by phitsc »

admin wrote:
phitsc wrote:
admin wrote:What happens with thumbnails when you are wheeling along?
They get gradually resized. The view changes from Tiles to Details to List to Small Icons, then gradually up to Extra Large Icons. With the View button in the tool bar you can choose between Small Icons, Medium Icons, Large Icons and Extra Large Icons for the icons views. Ctrl + Mouse wheel is as if you'd move the slider you can see on the left.
Vista Explorer Views.png
This can only work if the thumbnails have been cached before.
Would that also be the case if the scroll wheel would just cycle through the available views, i.e not do gradual resizing of icons like Vista's FE does?

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

Re: Change between list view types with the scroll wheel

Post by admin »

phitsc wrote:
admin wrote:
phitsc wrote:
admin wrote:What happens with thumbnails when you are wheeling along?
They get gradually resized. The view changes from Tiles to Details to List to Small Icons, then gradually up to Extra Large Icons. With the View button in the tool bar you can choose between Small Icons, Medium Icons, Large Icons and Extra Large Icons for the icons views. Ctrl + Mouse wheel is as if you'd move the slider you can see on the left.
Vista Explorer Views.png
This can only work if the thumbnails have been cached before.
Would that also be the case if the scroll wheel would just cycle through the available views, i.e not do gradual resizing of icons like Vista's FE does?
Yes.

Luigi
Posts: 57
Joined: 01 Sep 2011 00:41

Re: Change between list view types with the scroll wheel

Post by Luigi »

How can I cycle through views with my mouse wheel?

I can change font size of UI in Configuration.

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

Re: Change between list view types with the scroll wheel

Post by highend »

You can't
One of my scripts helped you out? Please donate via Paypal

Luigi
Posts: 57
Joined: 01 Sep 2011 00:41

Re: Change between list view types with the scroll wheel

Post by Luigi »

Not even with scripts or similar?

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

Re: Change between list view types with the scroll wheel

Post by highend »

Not from inside XY. You'd need an external application (e.g. AutoHotkey / AutoIt) that recognizes
when the mouse wheel + e.g. ALT as a modifier is used upon XY's window which sends an
appropriate script to it:
- Find out which view is currently active
- Depending on that value and a list of available modes -> Choose the next / previous depending
on scroll direction
One of my scripts helped you out? Please donate via Paypal

Luigi
Posts: 57
Joined: 01 Sep 2011 00:41

Re: Change between list view types with the scroll wheel

Post by Luigi »

So you can't change View Type with scripts?

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

Re: Change between list view types with the scroll wheel

Post by highend »

? Sure you can. But not by scrolling with the mouse wheel (at least not without writing an external application)...
One of my scripts helped you out? Please donate via Paypal

Display
Posts: 79
Joined: 21 Apr 2015 11:20
Location: Win10x64 21H2 LTSC @ 100% / XYx64 v.28.00.0500

Re: Change between list view types with the scroll wheel

Post by Display »

What would be the correct-bestest possible way to implement View/Thumbnails scrolling?

Right now I'm using AutoHotKey

Code: Select all

#IfWinActive ahk_class ThunderRT6FormDC	; XYplorer window
^WheelUp::Send {F12}
^WheelDown::Send {F11}
And inside XYplorer I've bound keys F12 and F11 to commands which trigger a script to cycle up and down the views respectively.

Code: Select all

"Views Larger : viewScrollUp"
	$CurView = (get("view"));
	if ($CurView == 0) {#306;}
	elseif ($CurView == 4) {#307;}
	elseif ($CurView == 5) {#308;}

"Views Smaller : viewScrollDown"
	$CurView = (get("view"));
	if ($CurView == 4) {#302;}
	elseif ($CurView == 5) {#306;}
	elseif ($CurView == 6) {#307;}
This works great however, if I scroll too fast and the Thumbnails haven't been created it will generate an error:
"A User-Defined Command (#1404) is not allowed to call itself."

So.. is there a better, more efficient way, to do this?

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

Re: Change between list view types with the scroll wheel

Post by highend »

Nope. the .dat2 file for a specific folder with a specific thumbs resolution is created before the .dbits file. And
the XYthumbs.txt gets the necessary entry first. Unfortunately the .dat2 file is in binary format so you can't just
read it and compare it's file entries with what image files exists in the destination directory. In other words:
There is no reliable way to find out if all thumbnails have been already generated...

I've asked Don for a new script command that generates thumbnails and ofc this could be enhanced with returning
if thumbnails are already generated but this hasn't been implemented yet
One of my scripts helped you out? Please donate via Paypal

Display
Posts: 79
Joined: 21 Apr 2015 11:20
Location: Win10x64 21H2 LTSC @ 100% / XYx64 v.28.00.0500

Re: Change between list view types with the scroll wheel

Post by Display »

Ahh I think I understand now. I just thought perhaps my "views" script was badly made!
For now I guess I'll have to run a timer to see if the error message dialog appears (and then instantly close it!)

Code: Select all

SetTitleMatchMode RegEx
SetTimer, XYdialog, 100
return

XYdialog:
IfWinActive, ^XYplorer .* ahk_class #32770, .*itself.$
ControlSend, Button1, {Space}, A
return
Well, I definitely look forward to that new thumbs script command in the future!

Post Reply