Toggle Tabset and Catalog simultaneously with one click?
-
Schuller
- Posts: 195
- Joined: 02 May 2023 21:08
Toggle Tabset and Catalog simultaneously with one click?
Can I toggle a particular Tabset with a particular Catalog simultaneously with one button click?
-
RalphM
- Posts: 2086
- Joined: 27 Jan 2005 23:38
- Location: Cairns, Australia
Re: Toggle Tabset and Catalog simultaneously with one click?
Not out of the box AFAIK but maybe the Session Manager script would allow such - check it out in the Scripts section viewtopic.php?t=8691.
Ralph 
(OS: W11 25H2 Home x64 - XY: Current x64 beta - Office 2024 64-bit - Display: 1920x1080 @ 125%)
(OS: W11 25H2 Home x64 - XY: Current x64 beta - Office 2024 64-bit - Display: 1920x1080 @ 125%)
-
highend
- Posts: 14925
- Joined: 06 Feb 2011 00:33
- Location: Win Server 2022 @100%
Re: Toggle Tabset and Catalog simultaneously with one click?
Let's assume you've saved two tabsets with the names: "First" & "Second"
The same for catalogs: "First.dat" & "Second.dat"
The same for catalogs: "First.dat" & "Second.dat"
Code: Select all
perm $P_Tab_Catalog_Toggle;
if (!isset($P_Tab_Catalog_Toggle) || !regexmatches($P_Tab_Catalog_Toggle, "(1|2)")) { $P_Tab_Catalog_Toggle = 1; }
if ($P_Tab_Catalog_Toggle == 2) {
$P_Tab_Catalog_Toggle = 1;
$catalog = "First.dat";
$tabset = "First";
} elseif ($P_Tab_Catalog_Toggle == 1) {
$P_Tab_Catalog_Toggle = 2;
$catalog = "Second.dat";
$tabset = "Second";
}
catalogload $catalog;
tabset("save");
tabset("load", $tabset);
writepv;
One of my scripts helped you out? Please donate via Paypal
-
Schuller
- Posts: 195
- Joined: 02 May 2023 21:08
Re: Toggle Tabset and Catalog simultaneously with one click?
This is amazing!
Just tried it and works perfect to synchronize/toggle my Catalogs with my Tabsets.
Thanks
Just tried it and works perfect to synchronize/toggle my Catalogs with my Tabsets.
Thanks
-
highend
- Posts: 14925
- Joined: 06 Feb 2011 00:33
- Location: Win Server 2022 @100%
Re: Toggle Tabset and Catalog simultaneously with one click?
No problem and... thanks (again) for the donation 
One of my scripts helped you out? Please donate via Paypal
XYplorer Beta Club