09-24-2013 07:59 AM
Hey,
the problem is as follows: I wrote a working XControl and want to disable all Inputs if the application is not in Run Mode. One way to do this is to disable all Inputs using the "Run Mode" event, and conversely enable them. Now this is rather cumbersome, is the a way to simply address all subcontrols and disable/enable them in one step?
Thank you in advance
Twerp
09-24-2013 09:05 AM
Grab the Controls[] property and disable all in a loop.
/Y
09-24-2013 09:29 AM
Ok,
thank you. But how do I get this property from within the XControl?
Twerp
09-24-2013 10:04 AM
You could put them into a cluster container and enable/disable the cluster.
Be aware that controls can be operated in edit mode even if they are diasabled, can you explain what you actually want to do?
09-24-2013 10:36 AM
I most certainly can! The single controlls set up parameters of a piece of hardware that does not react until it is properly initialized, so i have to protect these inputs until this is the case. If there is a more elegant way to achieve this, please let me know!
Regards
Twerp