An alternative you could try is to call ZO_PreHook on the SetHidden member of the control you want to connect to and set your control to hide based on the input parameter.
Another alternative is, if you have a different control per menu, set your control's parent to that menu. It should inherit the SetHidden value automagically.
|