Windows size for Input in dialog box

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?

 Risposta accettata

Grzegorz Knor
Grzegorz Knor il 22 Dic 2011

3 voti

3 Commenti

Hi Grzegorz, yes I follow the help but for example if I using this code I have not the entire title:
prompt = {'Rows:', 'Columns:'};
title_text = 'Please enter the desired matrix size';
a = inputdlg(prompt,title_text, 1, {'' ''}, 'on');
Maybe is because i'm using R2009b and Windows instead of linux?
Try second tip:
a = inputdlg(prompt,title_text, [1 50]);
Thanks a lot Grzegorz

Accedi per commentare.

Più risposte (1)

Robert Cumming
Robert Cumming il 22 Dic 2011

0 voti

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 Commento

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?

Accedi per commentare.

Categorie

Scopri di più su Creating, Deleting, and Querying Graphics Objects in Centro assistenza e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by