MATLAB Answers

Setting 'Visible' to 'off' in a Panel will stop its child objects from receiving inputs?

2 views (last 30 days)
Chaitanya Jha
Chaitanya Jha on 18 Feb 2019
I have a lot of panels in my GUI. Most of these panels are of same size and have same layout of objects such as text box, edit, popup, etc. Due to large number of these panels, I have implemented a method to scroll through the panels in my GUI. To make a panel go out of visibility I change it's visible property to off but not of any of it's child objects. I am concerned that even when my panel is not visible it's child objects (such as edit box, popup and check box) can receive inputs from mouse or keyboard when I click over it's location.
I tried to find a concrete answer for this question but came out with nothing, I also tried to see if the child objects in the invisible panel reacts to my inputs and it turns out they don't. But I am still not sure, because making a panel invisible by setting it's 'Visible' property to 'off' does't make the 'Visible' property of it's child panels 'off' as well, so why won't they react to my inputs??


Sign in to comment.

Answers (0)

Sign in to answer this question.