Borrar filtros
Borrar filtros

how to close uipanel base on click on pushbutton

5 visualizaciones (últimos 30 días)
praveen chandaliya
praveen chandaliya el 17 de Sept. de 2017
Comentada: praveen chandaliya el 18 de Sept. de 2017
how to close uipanel base on click on pushbutton
a6=uicontrol('parent', handles.hsp,'Style','pushbutton','FontSize',11,'FontWeight','bold', ...
'position',[5 20 60 20],'string','close','Callback',@mycloseFunction);

Respuesta aceptada

Walter Roberson
Walter Roberson el 18 de Sept. de 2017
outer = uipanel()
inner = uipanel('Parent', outer)
but = uicontrol('style', 'push', 'Callback', @(src, event) delete(outer) )
  1 comentario
praveen chandaliya
praveen chandaliya el 18 de Sept. de 2017
Thanks Walter this code working properly... if any one required to close figure than also close using this way only pass delete(hFig)..

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Interactive Control and Callbacks en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by