Change the size of an icon

19 次查看(过去 30 天)
Maxi
Maxi 2021-4-30
Hello,
is there a way to change the size of the icon of the window when using the function uiconfirm or uialert.
It would also help to resize the whole window of uiconfirm or uialert.
Thanks!

回答(1 个)

Jan
Jan 2021-4-30
According to the documentation you can provide your own icon: https://www.mathworks.com/help/matlab/ref/uiconfirm.html
You can provide a uifigure as input also. What happens, if you set its size accordingly?
  5 个评论
Maxi
Maxi 2021-5-3
I tried to figure out how to change the behaviour of the icon but I don't think it could be modified. The last function which will handle the display of the uiconfirm box is the function message.publish. But Matlab does not allow to go deeper into the code than message. Message only bring an comment with the following content:
%MESSAGE Internal utility to access translated message strings
% MSGOBJ = MESSAGE(MSGID,PARAMS) constructs an object that includes
% localized text associated with identifier MSGID.
%
% The MESSAGE function searches only MathWorks message catalogs and is
% intended for MathWorks use only.
% Copyright 2010-2011 The MathWorks, Inc.
Walter Roberson
Walter Roberson 2021-5-3
message() pulls information out of a language-specific message database, and does not do any UI work itself.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Maintain or Transition figure-Based Apps 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by