uifigure vs figure - advice please

51 visualizaciones (últimos 30 días)
Justin
Justin el 8 de Feb. de 2021
Editada: dpb el 18 de Jul. de 2025
We have a set of Matlab-based tools that all use a common set of GUI superclasses to provide a consistent look and feel plus certain common functionality. They pre-date uifigure so use figure to create the GUIs. There are some features that are only available in GUIs created using uifigure, e.g. scrollable panels, plus the compatibility with the App Designer.
As a test I changed our superclass to use uifigure and encountered a pile of warnings and errors when testing with one of our tools. Obviously I can work through those but expect I will find the same in our other tools using the same GUI superclasses.
So, my questions are:
1) Is there a guide specifically for converting figure-based GUIs to uifigure-based? A checklist of what properties/methods are different even. I couldn't find anything.
2) Any experience/comments on how much pain is involved? If it was just one tool I'd go for it but it's a suite of tools in our case.
  11 comentarios
Adam Danz
Adam Danz el 18 de Jul. de 2025
Glad to hear this! I'll pass your comment along.
dpb
dpb el 18 de Jul. de 2025
Editada: dpb el 18 de Jul. de 2025
I've built no Windows apps from code other than Fortran console computational code so I don't know anything about normal app startup without the console, but commercial applications don't have such a delay before their splash screen appears as do the MATLAB compiled apps so I infer there must be some manner to make that occur while the code is doing whatever else it needs to do before rendering the user interface. The ladies have finally (sorta') gotten adjusted to the idea they just have to wait, but it is still disconcerting because one cannot tell if the application has actually been started or not for several seconds (that seem like forever) so the inclination is to try again and again and again...and, sometimes, the double-click didn't actually happen, either, so have sat around waiting until do finally decide that is what happened. It's just not a user-friendly experience to use these apps with this behavior.

Iniciar sesión para comentar.

Respuesta aceptada

Jasmine Poppick
Jasmine Poppick el 10 de Jul. de 2025
This page gives an overview of the steps for updating: Update figure-based app to Use uifigure.
There's also more information on each step. For example, this page talks about replacing uicontrol with the newer UI component functions: Update UIControl Objects and Callbacks.

Más respuestas (0)

Categorías

Más información sobre Creating, Deleting, and Querying Graphics Objects en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by