Réponse acceptée

Jan
Jan le 25 Mar 2011

1 vote

Ah, well, there is a standard answer for GUI questions: Please inspect the examples in Matt Fig's FEX: GUI-Examples

Plus de réponses (3)

Jan
Jan le 25 Mar 2011

1 vote

Let me guess what you want - although wild mass guessing is an inefficient counterproductive anti-pattern (see Wiki: AntiPattern)
uicontrol('Style', 'pushbutton', ...
'String', 'Exit', ...
'Position', [10, 10, 120, 22], ...
'Callback', @myExit, ...
'FontName', 'Helvetica');
function myExit(ObjH, EventData)
FigH = ancestor(ObjH, 'figure');
set(FigH, 'DeleteFcn', '', ...
'CloseRequestFcn', '');
delete(FigH);
Matt Fig
Matt Fig le 25 Mar 2011

0 votes

Is there a question in there somewhere?

Catégories

En savoir plus sur MATLAB dans Centre d'aide et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by