How to increase font size and remove extra space in prompt window/listdlg ?
8 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Ankitkumar Patel
el 3 de Mayo de 2022
Respondida: Voss
el 3 de Mayo de 2022
list = {'1','2','3'};
[indx]=listdlg('PromptString',{'Select Number.',...
''},...
'SelectionMode','single','ListString',list);
0 comentarios
Respuesta aceptada
Voss
el 3 de Mayo de 2022
To get rid of the extra space inside the listbox, you can specify its size (in pixels):
list = {'1','2','3'};
[indx]=listdlg( ...
'PromptString',{'Select Number.',''},...
'SelectionMode','single', ...
'ListString',list, ...
'ListSize',[100 120]); % 100 pixels wide, 120 pixels high
To get rid of the extra space above the listbox, you can avoid sending it empty lines in the PromptString:
list = {'1','2','3'};
[indx]=listdlg( ...
'PromptString','Select Number.',...
'SelectionMode','single', ...
'ListString',list, ...
'ListSize',[100 120]);
Unfortunately, increasing the font size is not as easy as specifying an additional pair of input arguments.
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Migrate GUIDE Apps en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!