Hello,
I'm new in writing scripts.
I created several Tabs and named them: Selection 1, Selection 2, Selection 3 and so on.
Now I would like to have a user defined Button, where I can diectly switch between the tabs: (button 1 __ Selection 1) and so on.
Can someone help me?
Thanks in advance
Gerhard
Script to switch between tabs
-
highend
- Posts: 14923
- Joined: 06 Feb 2011 00:33
- Location: Win Server 2022 @100%
Re: Script to switch between tabs
Code: Select all
$menu = "";
while ($i++ < gettoken(<get tabs>, "count", "|")) { $menu .= tab("get", "name", $i) . "|" . $i . "|" . tab("get", "path", $i) . <crlf>; }
$id = popupmenu($menu, 6:=<crlf>, 7:="|");
if ($id) { seltab $id; }
One of my scripts helped you out? Please donate via Paypal
-
GSComputer
- Posts: 7
- Joined: 25 Dec 2021 09:38
Re: Script to switch between tabs
Thanks, that is another good idea, but not what I really want. I think it is my bad english.
I created several TAB groups named selection 1 and so on.
Each button should represent a Tabgroup. So I can easily switch/change between the several Tabgroups.
Deutsch:
Ich habe verschiedene Tabgruppen, und sie Auswahl 1 Auswahl2 und Auswahl 3 benannt.
Nun möchte ich jeweils eine eigene Befehlsschaltfläche für Auswahl 1 Auswahl 2 ud Auswahl 3 erstellen, um ein schnelles Umschalten zwischen den Tabgruppen ermöglichen
Wer kann mir dabei helfen.
Danke
Gerhard
I created several TAB groups named selection 1 and so on.
Each button should represent a Tabgroup. So I can easily switch/change between the several Tabgroups.
Deutsch:
Ich habe verschiedene Tabgruppen, und sie Auswahl 1 Auswahl2 und Auswahl 3 benannt.
Nun möchte ich jeweils eine eigene Befehlsschaltfläche für Auswahl 1 Auswahl 2 ud Auswahl 3 erstellen, um ein schnelles Umschalten zwischen den Tabgruppen ermöglichen
Wer kann mir dabei helfen.
Danke
Gerhard
Last edited by GSComputer on 09 Oct 2022 10:15, edited 1 time in total.
-
highend
- Posts: 14923
- Joined: 06 Feb 2011 00:33
- Location: Win Server 2022 @100%
Re: Script to switch between tabs
Are you talking about Tabsets?
One of my scripts helped you out? Please donate via Paypal
-
GSComputer
- Posts: 7
- Joined: 25 Dec 2021 09:38
-
highend
- Posts: 14923
- Joined: 06 Feb 2011 00:33
- Location: Win Server 2022 @100%
Re: Script to switch between tabs
tabset("load", "<Name des jeweiligen tabsets>");One of my scripts helped you out? Please donate via Paypal
-
RalphM
- Posts: 2086
- Joined: 27 Jan 2005 23:38
- Location: Cairns, Australia
Re: Script to switch between tabs
Why don't you just use the existing tabset toolbar button to select which tabset should be loaded?!
You do not have the required permissions to view the files attached to this post.
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%)
-
GSComputer
- Posts: 7
- Joined: 25 Dec 2021 09:38
-
GSComputer
- Posts: 7
- Joined: 25 Dec 2021 09:38
-
highend
- Posts: 14923
- Joined: 06 Feb 2011 00:33
- Location: Win Server 2022 @100%
Re: Script to switch between tabs
It denotes a variable...
tabset("load", "Zeitungen");^^One of my scripts helped you out? Please donate via Paypal
-
GSComputer
- Posts: 7
- Joined: 25 Dec 2021 09:38
Re: Script to switch between tabs
Danke das war was ich wollte
XYplorer Beta Club