Get UI object name
11 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
I am saving an app state so it can be loaded later. I add tags to the numeric edit fields that need to be saved. I pull all the object handles, find those that are tagged, and save whatever properties I need to restore in text/.mat. The issue is I am trying to make it open-ended such that adding a non-specific tag is all that I have to do to get a field to save. I want to store the name of the object with the saved properties so that I can match up when loading. I get that I can give them a unique ID, but they already have names in my app. The name doesn’t appear to be a property in the uinumericeditfield object. Is there another way to query the name of the object in the app once I have its handle?
0 comentarios
Respuestas (1)
Walter Roberson
el 20 de Mzo. de 2024
No. You are working with handles, and there are multiple names for the same handle. You can chase the Parent property to get the shortest path to the root, but that doesn't tell you the "name" of anything.
Ver también
Categorías
Más información sobre Develop Apps Using App Designer en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!