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
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
-
- 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.
Re: Script to switch between tabs
Are you talking about Tabsets?
One of my scripts helped you out? Please donate via Paypal
-
- Posts: 7
- Joined: 25 Dec 2021 09:38
Re: Script to switch between tabs
tabset("load", "<Name des jeweiligen tabsets>");
One of my scripts helped you out? Please donate via Paypal
Re: Script to switch between tabs
Why don't you just use the existing tabset toolbar button to select which tabset should be loaded?!
Ralph
(OS: W11 22H2 Home x64 - XY: Current beta - Office 2019 32-bit - Display: 1920x1080 @ 125%)
(OS: W11 22H2 Home x64 - XY: Current beta - Office 2019 32-bit - Display: 1920x1080 @ 125%)
-
- Posts: 7
- Joined: 25 Dec 2021 09:38
-
- Posts: 7
- Joined: 25 Dec 2021 09:38
Re: Script to switch between tabs
It denotes a variable...
tabset("load", "Zeitungen");
^^One of my scripts helped you out? Please donate via Paypal
-
- Posts: 7
- Joined: 25 Dec 2021 09:38
Re: Script to switch between tabs
Danke das war was ich wollte