How to rename UI Figure window in App Designer

Hi
I am currently using App Designer to create an app which, I will eventually run through deploytool to generate a .exe file. However, I cannot change the app window title from UI Figure to a custom one. Please can anyone assist me?

 Accepted Answer

Hello, in order to rename your UIFigure you can follow this steps: - open your project in App Designer - In the COMPONENT BROWSER menu (you can find it on the right) select the first element in the list - In the UI FIGURE PROPERTIES (down on the right) you can add the name that you want in the Title field.
BR Marco

4 Comments

Thank you! It works for me.
This actually does not work for me. When I rename from "UI Figure" to any other name, I get an error when I click "Run" in the Editor panel. Specfically, when I change the name to "UI Figures" instead of "UI Figure", I get the following error when I run it:
Unable to find function %MudSlownessGUI.init.UIFigure within C:\Users\kwdh\source\repos\MudSlownessGUI\MudSlownessGUI.mlapp
The name of the app file name is MudSlownessGUI.m. What's causing this problem?
Thanks,
Kris
Ok, I figured this out. In order to change names for the version I am using (2019b), I need to make sure that "IntegerHandle" is checked. If I do not check any of these (the default for me), then I get that error above. Hope this helps someone.
Kris

Sign in to comment.

More Answers (1)

in the startupFcn(app) of your app add the code:
app.current name.Name='new name';

2 Comments

This does not work just FYI
There is no method for that
i think Hikmet meant you have to rename the Figure, not the app itself.
It works, and you can customize it if you use a sprintf function :
app.CurrentAppUIFigure.Name = sprintf('APP - %s (DATA)',name);

Sign in to comment.

Categories

Find more on Develop Apps Using App Designer in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!