Extreme newbie here trying to learn my way around this program's extremely rich feature set.
I would like to create a toolbar button that does the following with the "Dual Display" view:
- If Dual Display is OFF, the button turns it on.
- If Dual Display is ON, the button toggles between horizontal and vertical layout.
- I also want the icon to change from one image when the layout is single, then to a second image when dual horizontal and yet another image when dual vertical. (I know how to assign an icon to a button but not how to toggle it when the lister state changes.)
The script below is my best effort, but it didn't work. Thanks for any help you can provide.
@ifset:DUAL=Off
Prefs STYLE=ToggleLayout
@ifset:Else
Prefs STYLE=Dual