Doesn't appear all the title in the Gui
1 view (last 30 days)
Show older comments
Fabio Retorta
on 11 Aug 2016
Commented: Image Analyst
on 12 Aug 2016
Hello guys, The title just appear Energetic Po... What I can do to appear Energetic Power Criteria in the title of the GUI I dont know how to solve this problem.
This is the code
Msg = { 'Relative weights of LCOE criteria' 'Relative weights of regulatory criteria' 'Relative weights of technology criteria' };
Title = 'Energetic Power Criterium ';
NumLines = 1;
PrefVal = {'3' '1/4' '5'};
options.Resize='off';% configuração da interface
options.WindowStyle='modal';%configuração da interface
options.Interpreter='tex';%configuração da interface
Data = inputdlg(Msg,Title,NumLines,PrefVal, options);%Interface usuário (MUITO IMPORTANTE)
a_34 = str2num(Data{1});% Número de identificação da propriedade
a_35 = str2num(Data{2});
a_36 = str2num(Data{3});
1 Comment
Geoff Hayes
on 11 Aug 2016
Fabio - manually resizing it might be the only option. See http://www.mathworks.com/matlabcentral/answers/101326-how-can-i-make-an-input-dialog-box-created-by-inputdlg-wide-enough-to-show-the-entire-title for details.
Accepted Answer
Image Analyst
on 12 Aug 2016
2 Comments
Image Analyst
on 12 Aug 2016
You forgot to pass def into inputdlg as the fourth argument. Here is the fixed code:
N = 22;
prompt = {'Peso em relação ao critério Potencial Energético' 'Peso em relação ao LCOE'...
'Peso em relação ao critério Regulatória' 'Peso em relação ao critério Tecnologia' };
title_text = 'Critério Indice Impacto Socio Ambiental';
num_lines = 1;
def = {'8' '1/9' '2' '1/2'};
caUserResponse = inputdlg(prompt, title_text, [1, length(title_text)+N], def);
options.Resize='on';
options.WindowStyle='modal';
options.Interpreter='tex';
a_23 = str2num(def{1});
a_24 = str2num(def{2});
a_25 = str2num(def{3});
a_26 = str2num(def{4});
More Answers (0)
See Also
Categories
Find more on Measurements and Feature Extraction in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!