Trying to implement a layout that adapts to the window size/state

Discuss and share scripts and script files...
Post Reply
nxeng
Posts: 5
Joined: 22 Mar 2024 09:14

Trying to implement a layout that adapts to the window size/state

Post by nxeng »

Hi,
Can XYplorer switch to single pane and hide the navigation panels? I found the command codes for toggling them, but not separate commands for showing/hiding them. Ideally I'd like it to automatically switch to a compact layout that hides everything besides the tab bar and the file list, but I don't think that is possible so I plan to assign 1-2 keyboard shortcuts for switching between the compact and the full layouts.

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

Re: Trying to implement a layout that adapts to the window size/state

Post by highend »

Code: Select all

"Hide"
    // Just
    if (get("#663")) { #663; } // Navigation panels

    // Alternatively, with single items
    // if (get("#800")) { #800; } // Dual Pane
    // if (get("#664")) { #664; } // Show Catalog
    // if (get("#668")) { #668; } // Show Tree

"Show"
    if (!get("#663")) { #663; } // Navigation panels

    // if (!get("#800")) { #800; } // Dual Pane
    // if (!get("#664")) { #664; } // Show Catalog
    // if (!get("#668")) { #668; } // Show Tree
One of my scripts helped you out? Please donate via Paypal

klownboy
Posts: 4142
Joined: 28 Feb 2012 19:27

Re: Trying to implement a layout that adapts to the window size/state

Post by klownboy »

You may also want to take a look at this recent thread and small script here viewtopic.php?t=27095. You provide a list of tab IDs for those tabs that you want a full list panel with no nav panel and set a Custon Event Acrion for "Switch Tabs" and "Switch Panel" and it will automatically remove the nav panel from those tabs that you do not want see it (e.g., viewing PDF files, or pictures etc.) It's very seamless and fast and easy to set up.
Windows 11, 23H2 Build 22631.3447 at 100% 2560x1440

Post Reply