Azzera filtri
Azzera filtri

how to close uipanel base on click on pushbutton

5 visualizzazioni (ultimi 30 giorni)
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);

Risposta accettata

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

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Interactive Control and Callbacks in Help Center e File Exchange

Tag

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by