PDA

View Full Version : buttons are clickable inside a disabled panel



adammascherin
21 Mar 2013, 4:33 AM
I have a panel with buttons inside. If I disable that panel, the buttons within it are still enabled and clickable. Is there any way to fix this without? manually disabling each button within?

mitchellsimoens
23 Mar 2013, 6:04 AM
You can listen to the disable event and disable children.

adammascherin
25 Mar 2013, 4:46 AM
Yes I know I can do that and I have for now, but I have specific logic for enabling/disabling the buttons based on other factors and I didn't want to add extra logic to check if the panel is enabled/disabled.

I thought it would make sense that if a panel is disabled, all items within are not enabled/clickable as well.