Filter löschen
Filter löschen

Windows size for Input in dialog box

31 Ansichten (letzte 30 Tage)
Maurizio
Maurizio am 22 Dez. 2011
I'm using the below code:
prompt = {'Reporting year:','Aircraft operator:','Unique identifier:','Aircraft code:','Member State:','Competent authority:','AOC number:','AOC authority:','Operating Licence:','Issuing authority:'};
dlg_title = 'General Information ';
num_lines = 1;
answer = inputdlg(prompt,dlg_title,num_lines);
The problem that the windows size is too small and is cutting part of the title. Is it possible to increase the size?

Akzeptierte Antwort

Grzegorz Knor
Grzegorz Knor am 22 Dez. 2011
  3 Kommentare
Grzegorz Knor
Grzegorz Knor am 22 Dez. 2011
Try second tip:
a = inputdlg(prompt,title_text, [1 50]);
Maurizio
Maurizio am 22 Dez. 2011
Thanks a lot Grzegorz

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (1)

Robert Cumming
Robert Cumming am 22 Dez. 2011
Its quite easy to make a copy of the inputdlg m code, the FigWidth variable is hardcoded - so either override the hardcoded value or add an extra optional input (e.g. options.Width)
  1 Kommentar
Maurizio
Maurizio am 22 Dez. 2011
I robert i'm using for my code but was to long to post. How can I define the width? I need to put before the inputdlg?

Melden Sie sich an, um zu kommentieren.

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