Filter löschen
Filter löschen

Trouble Using Close Function

1 Ansicht (letzte 30 Tage)
Hanif
Hanif am 30 Mai 2013
Writing a program where the close function will not work in a uimenu.
*function startup *
fig = figure;
File = uimenu(fig,'Label','File');
Exitbutton = uimenu(File,'Label','Exit','Callback',@Exit);
*end *
*function Exit(hObj,event)*
fig = get(hObj,'Parent');
close(fig)
*end *

Antworten (0)

Kategorien

Mehr zu Startup and Shutdown finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by