GUI - Showing or hiding a panel

Hello,
I try, without success, to hide a (large) panel including another (small) panel. It works only if the panel is not including another panel.
I use
hSoftwareControl=get(handles.TakeOffControl_panel,'Children');
set(hSoftwareControl,'Enable','off');
The 'Enable' property is not recognized in the case of the large panel.
If somedy has already been able to hide the panel in this configuration.
Thank you
Jerome
<<C---Documents-nbsp-and-nbsp-Settings--a033578--Desktop--Enable.bmp>>

5 Kommentare

Nick
Nick am 18 Jan. 2013
try to use hSoftwareControl=get(handles.TakeOffControl_panel,'Children'); set(hSoftwareControl,'Enable','of');
Note the of is with one "f"
Adrian Dronca
Adrian Dronca am 18 Jan. 2013
Try
set(hSoftwareControl,'Visible','OFF');
and make sure hSoftwareControl is the right handle
Daniel Shub
Daniel Shub am 18 Jan. 2013
Please provide a simple example which shows what you have done, what you get, and what you expect to happen.
Blondeel
Blondeel am 18 Jan. 2013
Bearbeitet: Blondeel am 18 Jan. 2013
Thank you. 'of' is not working ; and regarding the property 'Visible', I do not want the handle to be unvisible. As Daniel requested, I try to add an image, but I do not succeed... The gif image is ready on my desktop, could you please help me to add it ?
Daniel Shub
Daniel Shub am 18 Jan. 2013
We need simplified code that we can run which can reproduce the problem if you want us to have a fighting chance of helping you. An image does not help. We also need a textual description of what you get with the code and what you expect to see. Please edit the question to include this.

Antworten (0)

Diese Frage ist geschlossen.

Gefragt:

am 18 Jan. 2013

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by