creating message dialog box
4 次查看(过去 30 天)
显示 更早的评论
Hi all
I want to create a message dialog box with an arbitrary figure.How can I do that?
0 个评论
采纳的回答
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
1 个评论
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
2011-10-1
msgbox create and open message box:
doc msgbox
See also:
doc dialog
2 个评论
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 Exchange 中查找有关 Dialog Boxes 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!