My widget looks like this:
Group 4
Toggle 1-----Group 1
Master Toggle ----Toggle 2-----Group 2
Toggle 3-----Group 3
Basically, the various toggles in group 4 show and hide their respective groups, and the master toggle shows/hides group 4. I hope that's pretty clear, it was the best way I could describe it.
So far, I'm only using the inbuilt popup controller, but I think I need to use scripting, because here's what I'd like. When you click on the master toggle, it hides group 4, and also groups 1, 2, and 3. Ideally, I'd also like it to remember which of the groups was visible, so when you click it again, the groups that were open, open, and those that were previously closed remain close.
I realise I've described this really badly, and I've looked at sViz's controlling groups tut, but that didn't help.
Thanks.