08-22-2014 11:00 AM
Is there an easy way to find the Control Indexes of all the Front Panel controls? I know I can create do this individually for each control using the Control Index property node. I was wondering if there was a function or a way to read all Front Panel Control Indexes a lot more efficiently.
Thanks so much!
08-22-2014 11:03 AM
08-22-2014 11:09 AM
I need to re-initalize all my front panel controls except for a select few. I was wondering if there was a function or an efficient way to programitically read out all the front panel control references. I then want to set specific control values to certain values using the "Set Control Values By Index" function.
08-22-2014 11:28 AM
08-22-2014 04:13 PM
Yep, using the control index property node.
08-22-2014 04:16 PM
08-22-2014 04:53 PM
Picking up on Yamaeda's suggestion, I just wrote a routine that had a Picture control that I wanted to fill the full screen. At first, I went through and made each control except the Picture invisible. Then I had an "Aha" moment -- I used the Pane property to get references to all of the controls, made them all invisible, then went through looking for controls whose ClassName was "Picture" (I could have also used the Control name, but this seems more direct) and did what I needed to do with it. Much neater, no muss, no fuss.
BS
08-22-2014 05:32 PM
Does this do the trick?
Cheers,
mcduff
08-25-2014 08:45 AM
Thanks McDuff and Bob_Schor...This information is very helpful!
08-25-2014 08:59 AM
@testdesign wrote:
I need to re-initalize all my front panel controls except for a select few. I was wondering if there was a function or an efficient way to programitically read out all the front panel control references. I then want to set specific control values to certain values using the "Set Control Values By Index" function.
Then you can invoke the Reinitialize default values and rewrite the select few. 🙂
/Y