[It's been quite a while since I've been fiddling with my DO configuration; I quite enjoy picking it up again... ]
My question:
I have four buttons in a toolbar to switch between my favourite View Modes and I want each of them to appear pressed when it's selected:
List
Set VIEW=List
Details
Set VIEW=Details
Set COLUMNSREMOVE=thumbnail
@toggle:if&!COLUMNSTOGGLE=thumbnail
3. Details + Thumbnails
Set VIEW=Details
Set COLUMNSADD=thumbnail(0,96)
@toggle:if&COLUMNSTOGGLE=thumbnail
4. Thumbnails
Set VIEW=Thumbnails
The setup is nearly perfect; it switches views as intended and the 'pressed' appearance is correct except in two cases:
When I switch from 2 to 3, button 2 remains pressed while button 3 remains released.
When I switch from 3 to 2, button 3 remains pressed while button 2 remains released.
I read the help and searched the forum and found, among others, the toggle Details+Thumbnail button thread which seems to confirm that what I have is correct - but I probably didn't fully grasp the workings of the @toggle modifier yet...
I'm on the latest beta and I just checked the default Menu toolbar - you're right, the buttons look exactly the same. And no, they show the same behaviour I described above, i.e. I can switch between Details and Details+Thumbnails but the button state doesn't follow the switch.
I clicked on 1. List, then 3. Details+Thumbs, then 2. Details. The 3rd button remains pressed - until, as tbone found out, you switch to a different window and back.