Change the size of an icon

32 views (last 30 days)
Maxi
Maxi on 30 Apr 2021
Commented: Walter Roberson on 3 May 2021
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!

Answers (1)

Jan
Jan on 30 Apr 2021
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 Comments
Maxi
Maxi on 3 May 2021
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 on 3 May 2021
message() pulls information out of a language-specific message database, and does not do any UI work itself.

Sign in to comment.

Categories

Find more on Maintain or Transition figure-Based Apps in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!