input dialog box options
Afficher commentaires plus anciens
Hi,
I tried one of the examples from the inputdlg documentation http://www.mathworks.com/help/matlab/ref/inputdlg.html but it seems it is not working...
I am interested to make the dialog resize such that the text appears completely. The example from the documentations is like this:
prompt={'Enter the matrix size for x^2:',...
'Enter the colormap name:'};
name='Input for Peaks function';
numlines=1;
defaultanswer={'20','hsv'};
options.Resize='on';
options.WindowStyle='normal';
options.Interpreter='tex';
answer=inputdlg(prompt,name,numlines,defaultanswer,options);
My questions/problems are the following:
- Why the dialog is not rescaled, and the title is "Input fo..." instead of "Input for Peaks function"?
- What are the WindowStyle options supposed to do? The options are 'normal' or 'modal' but the documentation doesn't say what is the difference between these 2, and I also didn't notice any difference.
- How can I make the Enter key to press the active button of the dialog, i.e. instead of moving the mouse and click the button I want to just press Enter after I entered the values in the dialog. Is this possible?
Thanks,
Razvan
Réponse acceptée
Plus de réponses (1)
Razvan
le 8 Nov 2012
Catégories
En savoir plus sur File Operations dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!