I'm trying to create a custom button that immediately gives me thumbnail view #2 when clicked, but I have tried multiple variations of get ("View", [pane=a]); with the appropriate value (5) and still can't get it to work. I know it's probably obvious, but I would love some help.
"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#1
2 = List
3 = Small Icons
4 = Thumbnails #1
5 = Thumbnails #2
6 = Thumbnails #3
7 = Large Icons
8 = Small Tiles
9 = Large Tiles
Custom thumbnail button
-
bdeshi
- Posts: 4256
- Joined: 12 Mar 2014 17:27
- Location: Asteroid B-612
- Contact:
Re: Custom thumbnail button
get("view") RETURNS the current view type to you. This doesn't change the view.
To apply Thumbs#2 view, you need to use the associated menu command. In XYplorer almost all menu items have a command ID. (Hold CTRL + Help > List All Commands)
That would be #307. So use this script statement
To apply Thumbs#2 view, you need to use the associated menu command. In XYplorer almost all menu items have a command ID. (Hold CTRL + Help > List All Commands)
That would be #307. So use this script statement
Code: Select all
#307; //sets thumbnails #2 viewIcon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]
[ this user is asleep ]
XYplorer Beta Club