How can I change the icon of my AppDesigner-produced GUIs?
44 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Micke Malmström
am 19 Mär. 2018
Bearbeitet: li li
am 11 Dez. 2021
I would like to easily distinguage my GUI from the figures when pressing Alt+Tab so I can access it faster. Now when I run the GUIs they have the same icon as a regular figure...
4 Kommentare
Marc McLean
am 19 Apr. 2019
How do you change the icon in the upper left of the .mlappp GUI launched from AppDesigner?
Akzeptierte Antwort
Cris LaPierre
am 29 Okt. 2020
Starting with R2020b, you can now specify custom icons for UI figure windows and toolbar push and toggle tools. See the release notes here.
0 Kommentare
Weitere Antworten (3)
Robert
am 29 Okt. 2020
Add this to your startupFcn:
t = 0;
tMax = 5;
dt = 0.1;
while ~isfield(struct(struct(app.UIFigure).Controller), 'PlatformHost') && t < tMax
% Keep waiting until the window is found.
t = t + dt;
pause(dt)
end
win = struct(struct(struct(app.UIFigure).Controller).PlatformHost).CEF;
win.Icon = 'C:\Folder\MyIcon.ico';
Of course, you may have renamed the UIFIgure property of your app.
In R2016b and older, replace 'PlatformHost' with 'Container'.
0 Kommentare
Siehe auch
Kategorien
Mehr zu Environment and Settings finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!