Show All/Hide All buttons for 4 panels
-
I have 4 panels and each one has its own show/hide button.
I would also like to add a button which would show/hide all 4 panels at once. Have no idea how to do this. Would aprecciate very much any help.HiseSnippet 4672.3oc6c1Eaiicc.lxxbFaM+tSFrIawlErK1sva1MNRjbFa2fAlxxzdzrRVxRZFmAIH1zRWYSLTjZIo7LZ1cA7KKPaenAHH4g4gzNsoOuHOTfNnEMq5lf1WVDDjfjI4MuoM.IXCRl7v19Pen8d4OR7G8Cksr9k9gACuj7xy4bO268bO2ORkVVJOPQQRFKvr4pVFfE373YqJpter843EwhuJVfWDunjLghHeYfJwWj.TfWk.H.JATEUvVoZYNEEPAr.ABtN5NBL6zXXXGs4S98KuBm.mXdfQQZ+cGI97fD7k3UaTZZl2jWPXMtBfb7krb0zLwyKIFSRPpBT5BhGFqLW96wsGXCNzkMENVfyvBEFI4rpbp.Er.SuhTgpY2W59h5W+c3U32U.fNHBVVXEoW7ZRBEPRLpTrX6yKTHsoUPACVooaXSBpaStJdR9B70Kugs4xZmfnwcX0dDXp1IdQrJdg8t3MkEwaZcw64vylWlurZiyfjsygGWTEHWjC1DXUrzuVro9vowiIAuBQ04KwcOvZxvCpeGyc8EC+FDWKb3W6KegPWHzW5KQfzEhxbh.AEBNwBD6VQUURTAcVXyjhJwAbxZWTDhaPXVw6ATiIUprjH7f4dYsy9xnZz9crhVU096y3ZztaKGOuB5JEUkkDhwIHrKzCYNKmN1J5xOun.uHfnXEw7p7RhD1tj4xqWAuATfDp.dsKD5suPHB3eZx67JvVLiGwb5W.rJeW25MYakexVp2jdPuIcn2jsWuI6rdS1A8lrM5sS8fpsZ.UK0bJOn4TNzbp1q4TcVyo5flS44Vb51J+zsTuo8fdS6PuoaudS2Y8ltC5McK065Ulj3FRpfThy8Zgd6PyF5cCQ37TEK1zyYTqB.4ldZz.+xs6FmSrRocAxlxs4EBGAz9Pr3sdHVqy.jW23a4BkDiKxqlpLPrUC7hYzhAGBdZCoBdopZC.eQiAf0MzX7vwYu.tkwXvz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JvW.pcnJ4LZUhy68UXZbuSa+2kW8wMP254ztU8ic8rKnMm0qhSp8S3fk+NvwOICkSMlPvF0.mfM2ejDtlm1ruDemi0W9qE+l9a12XFAaTsifMWRHSnm9e5Svl+NXNpQvFkOAaCPB1n7zW9q+lG8Be+IdB1nZBAaS4ffMl19k+ZmhE+4Ka2ojnIDr0pu7WXO86VymfsVseyTiwDrQ0mIXqKBp8EOdDrM8+pWBpslnePs9Dr4G+2jIAaTSrDrQ4Sv1P.AaTcCAaO9QO5W5Sv1oFAaTcOAa+W9DrcJRvFU6+ve8zuKUstkfsi1bw+LFeB15MDrQMoRvFk+G9KeB17IXahhfMpVSvVvgzO7WTcEAaGs4S98iVDrQ0JB1boaDu+5+V+O7WiGDrQ6SvlOAa1IXS6C+UjL9Dr0KIXi1mfslQvF8nAAazsifsfiaDrU6i9HpSJAaLSdDrQOX2rOsOWJN2ruY71l8E1AAaGUzKa12g2xey9FyHXita+FrM58amg+NXNgsCltIXi9DQvFZbZO6da9nsjkROLmXtT9nu4F8MZez27J5azcF8MLL2nu8F+c0Qeq1K8d3N93sEwM5aDsD8sd5X6ianuQ2Fz2lpIoa6iGgPei9z5G8Rs7.eRPe6e4e53g9FJEc9+nW5i9lefi9nu0Jz2nmXQei1G8sg.z2n6Fz2H9ZeiehO5amZnuQ2knusy23C+09nucJh9FcaQeq1G9omol+GusAH5azSpnuQ6i9lO5a9nuMQg9FcW7wa6vaD5+XH.8M51g9lag9pu+SGsPei1+i21XB5a8Core7LJwkWVZ675HXfrGynUBzRHxoQXGdRzwDQLAu.GO77gwJwWfe674Q6CwWD1J176g7XbOTGi6g9XbOW6XbOW+XbOKbLtmEa68fH9JZEUoR5SBCKHMqtya.15NuAw9+AEaMKH.
-
In the button's callback put a loop that hides all of the panels if the button's value is 0 and show's them if the button's value is 1.