Function of the toolbar-cross
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Gerrit
am 4 Feb. 2014
Bearbeitet: Sean de Wolski
am 4 Feb. 2014
Hey everyone, does anyone know how/where to edit a GUI's closing function (if there even is one)? I'm not talking about commands like close but the X-button in the top right corner of the window. By hitting the X-button I want my GUI to call a certain function. Any ideas?
0 Kommentare
Akzeptierte Antwort
Sean de Wolski
am 4 Feb. 2014
Bearbeitet: Sean de Wolski
am 4 Feb. 2014
function exampleCloseReq
figure('CloseRequestFcn',@closeme)
function closeme(src,evt);
disp('I''m closing');
delete(src)
Save this as exampleCloseReq.m
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Interactive Control and Callbacks 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!