From your example, you want to change the text box colour based on the active tab?
These examples change the tab colour when the user changes the current tab:
You could use the same logic to change the text object colour.
But if I may make a suggestion. Your tab selection text object exists on each tab. Why not set the active tab colour manually on each tab? See the attached.
Button_Colors.qvw 136.8 K
I think you need to be able to distinguish between the different buttons pressed, so you need to use separate variables for each button or one variable and setting different variable values.
I am using a new variable vActiveSheet and just setting the target sheet id in the action.
Then I use conditional colors for the background / text color depending on the variable value.
Instead of setting the variable in the button / text box action, you could also use the action in OnActivateSheet trigger in the sheet properties, so it also works when selecting your sheet on the tab row. Since I assume you want to hide this tab row anyway, the implemented method should be enough.
Button_Colors_SW.qvw 135.8 K