フィルターのクリア

How to increase font size and remove extra space in prompt window/listdlg ?

25 ビュー (過去 30 日間)
Ankitkumar Patel
Ankitkumar Patel 2022 年 5 月 3 日
回答済み: Voss 2022 年 5 月 3 日
list = {'1','2','3'};
[indx]=listdlg('PromptString',{'Select Number.',...
''},...
'SelectionMode','single','ListString',list);

採用された回答

Voss
Voss 2022 年 5 月 3 日
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 件)

カテゴリ

Help Center および File ExchangeEnvironment and Settings についてさらに検索

製品


リリース

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by