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BGDPg7QMEntFvmAOP2+2qTOfPwD3ma2ZUB7veecB7g+ZqMrZuQWU8+lqtJ5jcs8RiWOZm30Z6DuV+l7JZa50F++sVe6tYgdpEVdLrb0FsUutHb.nsgU5nU00J2kJWjrjXqz88cktORe.UZNay7MyF3KbC31lugukIu9ISlPLkwjce8Sew1+gKnuU3Io7o8vRGJr8Quu27gvS6LI.S3pVUUMEjQ0NQfb4nlDFR3V9B+C7ENXEkrV3fUhFDMGa5HtvLneD0qkdfuFfSb+GMlUumR1XYGaJdOGdB2Ellp.wGCLeyHplZDGkZD0RMh5oFQiTi3SRMhO8VPndu7W4IEyCJK.ECNwuEPMsS3XXWk+NPz+BPmvnPE
As @dustbro said you got pretty close. Since you have the same number of buttons as there are panels you can just use a single loop and constant for both.
-
@dustbro @d-healey Ah that makes much more sense! Amazing. Thanks guys. Good to know I wasn't a million miles away I'll keep on learning. Hopefully it will all click properly soon. This helps loads. Much appreciated fellas. That's made my day.
-
@d-healey Sir
What if we want to make the Buttons open n Close the panel and Do the radio Style Aswell?
Any idea? -
@Natan Don't rely on HISE's button groups for this, handle it yourself with a loop in the button callback.
-
@d-healey Have no idea,
I got 7 buttons, and each one Opens a specific Panel and Closes other ones, Also They set All the Other button's Values to Zero Once they Get Clicked.It's A little Out of my Knowledge :/
-
Sounds like you have it already, what part is missing?
-
@d-healey
I write it down in a dirty Old-school Way.
Like if This = 1
This.setvValue(0);
That.setvValue(0);
That.setvValue(0);
That.setvValue(0);And so on...
Tyring to clean Up and optimize some of My code parts, And need A example Like that to Study, And Translate it my Project.
Just one If This button=1 Others Value=0 And Hide Evrything = 1 , Expect the One That Connected to that Button.
-
@Natan Did you see my video about creating a tabbed interface?
-
@d-healey Nope, Where is it :)
-
@Natan Give you 3 guesses ;)
It starts with aY
Edit: Starts with a
P
:D -
@d-healey Haha, Will Def Check it out Right now :) Been at your channel A Few minutes Ago, The New HISE SAUCE name Is Very Good :)
-
Oh actually I was wrong, seems that video is still only for Patreon supporters.
-
@d-healey Yeah I'm At Your Patreon Site :)
-
@d-healey Well done Sir, the video And project on Patreon Is exactly what I was looking for :) Thank you