Change the size of an icon

29 vues (au cours des 30 derniers jours)
Maxi
Maxi le 30 Avr 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!

Réponses (1)

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

Connectez-vous pour commenter.

Catégories

En savoir plus sur Maintain or Transition figure-Based Apps dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by