Funny, just 3 days before asked the same question... That's exactly what I am looking for :-) I tried it: When I click the button it switches the style :-) But then the button is not visible anymore. I tried it on my wiki but also on an empty wiki (Version 5.1.21), freshly downloaded.
The code: \define SwapActiveStyle(style1,style2) <$fieldmangler tiddler="$style1$"> <$action-sendmessage $message="tm-add-tag" $param="$:/tags/Stylesheet"/> </$fieldmangler> <$fieldmangler tiddler="$style2$"> <$action-sendmessage $message="tm-remove-tag" $param="$:/tags/Stylesheet"/> </$fieldmangler> \end \define swapper(style1,style2) <$vars sheet="$:/tags/Stylesheet"> <$list filter="[[$style1$]tag<sheet>]"> <$button><$text text="""<"""/> <<SwapActiveStyle """$style2$""" """$style1$""">> </$button> </$list> <$list filter="[[$style2$]tag<sheet>]"> <$button><$text text=""">"""/> <<SwapActiveStyle """$style1$""" """$style2$""">> </$button> </$list> </$vars> \end <<swapper $style1$ $style2$>> Why does it disappear, what am I doing wrong? Thanks for your help! Surya -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/0ce13336-3706-4081-9571-95c41676554b%40googlegroups.com.

