フィルターのクリア

creating message dialog box

5 ビュー (過去 30 日間)
rahman
rahman 2011 年 10 月 1 日
Hi all
I want to create a message dialog box with an arbitrary figure.How can I do that?

採用された回答

Jan
Jan 2011 年 10 月 1 日
For IconData and IconCMap you can look in the source code of msgbox by "edit msgbox":
a = load('dialogicons.mat');
IconData = a.warnIconData;
IconCMap = a.warnIconMap;
IconCMap(256, :) = get(figureHandle,'Color'); % Pseudo transparence
See also imread
  1 件のコメント
Walter Roberson
Walter Roberson 2011 年 10 月 2 日
Right. And thus to use your own icon, either create your own msgbox-like routine starting with the msgbox source, or else ensure that you have your own dialogicons.mat file earlier on the matlab path than would otherwise be the case.

サインインしてコメントする。

その他の回答 (1 件)

Grzegorz Knor
Grzegorz Knor 2011 年 10 月 1 日
msgbox create and open message box:
doc msgbox
See also:
doc dialog
  2 件のコメント
rahman
rahman 2011 年 10 月 1 日
tnx
But how can I define IconData and IconCMap?
Walter Roberson
Walter Roberson 2011 年 10 月 2 日
IconData should be an indexed image, and IconCMap should be the corresponding 256 entry color map, with entry 256 reserved for "transparent" pixels.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeDisplay Image についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by