Is there already or can you develop TABS

Here is what I have managed with all your help...

What I was hoping to do was to have whichever of the 6 colour buttons I pressed have a border
So that I could tell which set one was active...

Happy to use whatever would make that possible
With a little guidance :slight_smile:

And again - any help would be truly appreciated

@cwcmoore Would something like this work for you?

There are 2 different samples going on here. One on the same toolbar line and one below. It's not built dynamically and would need to be updated manually if you add/remove tab group buttons.

One alternative would be to use the icon to indicate what one was pressed. See @icon. You would need two sets of icons, one set being grey one colour. Set the buttons default icon to the grey one, and when you click the button it would change to a colour one.
The button command would look like this.

@icon:#MyTabIcons:TheColourIcon1,$glob:MyTabIcons+TheColourIcon1

Meaning, Set the button icon to MyTabIcons:TheColourIcon1 if global var MyTabIcons+TheColourIcon1 is set.

To make this work the buttons also need to manipulate some global variables. You would need one global var for each button. Pressing the button would set its variable, and clear all others. So the buttons code is no simpler than @yonder's suggestion.

@leo, would be nice if this worked

@icon:#MyTabIcons:TheColourIcon1,$glob:MyTabIcons+TheColourIcon1="somevalue"

It is interesting.
Please, more explain.

Thank you.

Here is another idea... (like you need one!)
Everytime I leave one of my tabs at the top
i.e I move from Downloads to Ad-hoc say
I have to save the set folders I have open down the left hand side
I dont suppose this could be automated could it?

Kind regards,
Charles

That should be possible, but I think you will need a custom script.

If you feel like writing a script there are events for things like switching folders and tabs many more. You can then change global variables, Dopus settings, tweak buttons, or run Dopus commands.
Best to start here Scripting.

If I understand what you want correctly it can be achieved in seconds without scripting.
Go the prefs as shown here:

This shows how I have set the colours I want for my tabs

The result is that the tab that is selected appears in a different colour. As shown here:

Obviously you can set your tab colours as you wish. Where there is Opus there is way!

This is a sample using icons. Clicking the button sets a variable, and clears the others. The icon is bound to that variable.

Button A

<?xml version="1.0"?>
<button backcol="none" display="both" label_pos="right" textcol="none">
	<label>Tab Group A</label>
	<icon1>#DOpusBasic:drive-a</icon1>
	<function type="normal">
		<instruction>@icon:#DOpusBasic:smiley,$glob:MyTabGroup1</instruction>
		<instruction>@toggle:if $glob:MyTabGroup1</instruction>
		<instruction />
		<instruction>@ifset:$glob:MyTabGroup1</instruction>
		<instruction> @set $glob:MyTabGroup1</instruction>
		<instruction>@ifset:else</instruction>
		<instruction> @set $glob:MyTabGroup1=true</instruction>
		<instruction> @set $glob:MyTabGroup2</instruction>
		<instruction> @set $glob:MyTabGroup3</instruction>
	</function>
</button>

Button B

<?xml version="1.0"?>
<button backcol="none" display="both" label_pos="right" textcol="none">
	<label>Tab Group B</label>
	<icon1>#DOpusBasic:drive-b</icon1>
	<function type="normal">
		<instruction>@icon:#DOpusBasic:smiley,$glob:MyTabGroup2</instruction>
		<instruction>@toggle:if $glob:MyTabGroup2</instruction>
		<instruction />
		<instruction>@ifset:$glob:MyTabGroup2</instruction>
		<instruction> @set $glob:MyTabGroup2</instruction>
		<instruction>@ifset:else</instruction>
		<instruction> @set $glob:MyTabGroup1</instruction>
		<instruction> @set $glob:MyTabGroup2=true</instruction>
		<instruction> @set $glob:MyTabGroup3</instruction>
	</function>
</button>

@auden, that is highlighting the selected tab. I think they want to use Tab Groups, so are creating buttons to do that.

To recreate this with the Active Tab Group name appearing to the right:

You'll need to create new toolbars, one for each Tab Group button. Don't worry where they are positioned, that will be controlled by the buttons.

On each toolbar, create labels or buttons that help indicate which Tab Group is active (Everything in the screenshot below is a button with "No highlight border" turned on, placed within 4 toolbars).

I'm only showing the code that works with 3 Tab Group buttons. You'll need to adjust for your needs. I'm sure you'll notice a pattern here.

On the Tab Group 1 button, add this code below any code you already have there that calls that Tab Group. Change "test TGx" to your actual toolbar name. Change "Line=2,250" to your toolbar position and number of pixels in from the left that you want this toolbar to be placed. Remember, toolbars are counted starting at 0 (zero). The 250 indicates how many pixels in from the left.

Toolbar "test TG1" STATE=top LINE=2,250
Toolbar "test TG2" CLOSE
Toolbar "test TG3" CLOSE

On Tab Group 2 button, you'll want to add this code (changing the details as needed).

Toolbar "test TG1" CLOSE
Toolbar "test TG2" STATE=top LINE=2,250
Toolbar "test TG3" CLOSE

On Tab Group 3 button, you'll want to add this code (changing the details as needed).

Toolbar "test TG1" CLOSE
Toolbar "test TG2" CLOSE
Toolbar "test TG3" STATE=top LINE=2,250
2 Likes

Thank you :grinning: