Turn Panel on or off with button ?
-
I know its super basic but I am pretty clueless at this point in my HISE journey.
Does anyone have a snippet that shows how to do this ?
Searched the forum but found nothing.Thanks for your time.:)
-
@lalalandsynth What do you mean by on/off?
-
I am being very unclear in my posts , sorry about that.
I want to switch a panel to be visible with a button , rather then switching between panels with multiple buttons.So not a momentary button but a latching button that will turn on the panel when pushed and turn it off when pushed again.
Would be interesting to also know how to use a momentary button to turn on something like the preset window.
-
panel.showControl(button.getValue());
-
@d-healey I am getting ahead of myself , need to watch more videos and gain more general understanding.
thanks mate
-
HiseSnippet 1120.3ocwW97aiTCEG2SZmtMoDztRbfiC6oD0knIsIAPgEBI8GJBZaDIcEnUKE2YbRL0wdzLd51HXk.g3F+cvYty+A7W.G4OAtxoxyyOxLIMszl1pNppJ942W6Oyy9M94NtBKhmmvEoks2XGBR6sz6NlKG1ZHlxQs2Bo8d564ynRGFwnG9XOidDOowFF8EtF0BrfZN1A64QrQZZKsqRlV1kQAO+ym1DyvbKRhID5EBpE4KninxDqcZ74TFaGrMoGcTJuqznskf2RvD9.hKoahbvVmfGP1GqbKiNRakssoRgaWIVR7PZK2TXOt6Pwq4g9+BpG8XFQ0nLpKLPgl2QvrUDqrhZMjxr6DGJ7PvnzIIvrTXf4cz2iZSmXOI.83fNLRTjNdnk4pvqbZ7Lu93okBukCw6I5csboNxjdTrsldatj31GCKAowJzWTleKidKA3AWVZD9DxNtPiIJJ7QllOynVUyh0ymKeNXg.V4OE6Zr+g6cTyC606f86Z7biZ0S00w9RIz.L+xWUOsFGLmvlXOmZ6SAJzzrtA03iSOjfg0WuXtuOeNC3IZ.eI8UfywrNfHaIF4H3PiBOsYfKO0XcXDWubQEsJkgy3UIrixiKnKYFK4obmKcErVXF6XXqWAAOb5hrWrdt2.wFJmQ4Di99bKIUvMlwqBVwS5yffAymTLu58KKSXgYFT6y.Dil1RTtM4rC5mHQwUV3uYCYguekXD9.4vvfV3KPTjapXPIOXOWLMAS3yMn.7JmdSv3C+OE96KjjC3Efk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