필터 지우기
필터 지우기

Windows size for Input in dialog box

조회 수: 31 (최근 30일)
Maurizio
Maurizio 2011년 12월 22일
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]);
Maurizio
Maurizio 2011년 12월 22일
Thanks a lot Grzegorz

댓글을 달려면 로그인하십시오.

추가 답변 (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