Windows size for Input in dialog box

31 次查看(过去 30 天)
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?

采纳的回答

Grzegorz Knor
Grzegorz Knor 2011-12-22
  3 个评论
Grzegorz Knor
Grzegorz Knor 2011-12-22
Try second tip:
a = inputdlg(prompt,title_text, [1 50]);

请先登录,再进行评论。

更多回答(1 个)

Robert Cumming
Robert Cumming 2011-12-22
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 个评论
Maurizio
Maurizio 2011-12-22
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?

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Startup and Shutdown 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by