Trigger "SwitchToLayerTheme" command on toolbar tab selection
Hi,
Is it possible to trigger the command "SwitchToLayerTheme" from a toolbar tab so the theme automatically switch on the tab selection?
I have 3 themes with 3 associated tabs (each with specific commands) and I'd like to be able to dynamically switch theme when the user select a specific tab from the toolbar menu.
I've added the command with the theme ID as a parameter in the toolbar tabs section but it doesn't seems to do anything.
Thanks!
Stephan
0
-
Are you using a button to run the command and parameter? I just tested it in the GVH 2.5 and can confirm it works. 0 -
Hi John,
Actually yes it works when I use a button to run the command. What I wanted to do was to execute the command without a button. Trigger the "SwitchToLayerTheme" command when the user select the appropriate tab.0 -
To my knowledge, no, you can't associate commands to toolbar tabs.
I don't know if there's any way to modify the viewer config to run a command when a tab is clicked.0
Please sign in to leave a comment.
Comments
3 comments