Specifying icon in questdlg

バージョン 1.0.0.0 (24 KB) 作成者: Dirk
'buttondlg' enables you to change the icon in the question dialog box.
ダウンロード: 575
更新 2014/4/29

ライセンスの表示

'buttondlg' is a simple modification of MATLABs function QUESTDLG which enables the user to change the icon in the dialog box, known from the MATLAB function MSGBOX. Available icons are the same known from MSGBOX ('none', 'warn', 'error', 'help', 'custom'), but also 'quest' (known from the original QUESTDLG) and 'bulb'. If you choose 'custom', you also have to specify IconData and optional IconCMap, also known form fhe function MSGBOX. Best icon size is [50,50].

Examples (as shown in the image):

Example 1:

Button=buttondlg('System Error!','Error','Stop','Continue', struct('Default','Continue','IconString','error'));

Example 2:

Button=buttondlg('Do you like the color icon?','Question','Yes','Maybe','No',struct('Default','Yes','IconString','custom','IconData',uint8(rand(50,50,3).*256)));
% is the same like:
S.Default = 'Yes';
S.IconString = 'custom';
S.IconData = uint8(rand(50,50,3).*256);
Button=buttondlg('Do you like the color icon?','Question','Yes','Maybe','No',S);

Example 3:

options.Interpreter = 'tex';
options.Default = 'Don''t know';
options.IconString = 'none';
qstring = 'Is \Sigma(\alpha - \beta) < 0?';
title = 'Boundary Condition';
Button = buttondlg(qstring,title,'Yes','No','Don''t know',options)

引用

Dirk (2024). Specifying icon in questdlg (https://www.mathworks.com/matlabcentral/fileexchange/46401-specifying-icon-in-questdlg), MATLAB Central File Exchange. 取得済み .

MATLAB リリースの互換性
作成: R2013a
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
カテゴリ
Help Center および MATLAB AnswersDialog Boxes についてさらに検索
タグ タグを追加
謝辞

ヒントを得たファイル: Specifying questdlg position

Community Treasure Hunt

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

Start Hunting!
バージョン 公開済み リリース ノート
1.0.0.0