Page 1 of 1

Tab bar visibility

Posted: 16 May 2025 20:47
by Quaraxkad
I normally use XY as multi-instance with a single tab. But there are occasional cases where I want to open more folders than is feasible for multiple process instances (which may be bug that causes Out of memory errors to occur, even when there's plenty of system memory available and each XY instance is only using a small amount (although it might be running into the 32bit cap if you count *all* xyplorer.exe instances)).

Can the tab-bar be made to only show if there is more than one tab open? 99% of the time I don't want to see the tab-bar because there's only one tab. An automatic show/hide would be more convenient than manualy doing it. And otherwise it's likely to occur that mutliple tabs are open but I never know it because the bar is hidden. That can't happen currently because I have it set to a max of 1 tab per window.

Re: Tab bar visibility

Posted: 16 May 2025 21:44
by highend
Use a custom event action in the meantime?

After painting the file list would be an option...

Code: Select all

    $cntTabs   = tab("get", "c");
    $visTabBar = get("#662");
    if     ($cntTabs > 1 && !$visTabBar) { #662; }
    elseif ($cntTabs == 1 && $visTabBar) { #662; }
Ofc, it's not a 100 % solution but a 99% one...

Re: Tab bar visibility

Posted: 17 May 2025 00:18
by Quaraxkad
That sounds like a great solution, I'll try it. Thanks!

Re: Tab bar visibility

Posted: 17 May 2025 03:49
by jupe
Since it will be running constantly I would recommend that you achieve it in a more efficient way, maybe something like this,

setlayout("ShowTabs=".(tab(,c)>1));