The label component of an edit field is not showing in component browser of app designer
Ältere Kommentare anzeigen
I am using appdesigner. I added an edit field (which includes an "edit field" and an "edit field label". I changed the name of the edit field to "Env6", and the tag of the edit field changed to "Env6EditField", but the associated label is just called "Label". I want the label to be renamed to "Env6EditFieldLabel", in concordance with my other edit fields & labels, but I can't find the label component in the appdesigners component browser.
If I debug from within a callback, I can see that there is a field of "app" called "Label" (i.e. isfield(app,'Label')==1), but it isn't editable with the appdesigner GUI and not visible in component browser.
How do I edit this?
Akzeptierte Antwort
Weitere Antworten (1)
I don't think Label for an edit field exists as a separate object (at least not in very recent versions). It's a part of the editfield object and accessible via the editfield object's Label property. In your case the label can be accessed as app.Env6EditField.Label.
5 Kommentare
Andrew
am 1 Dez. 2022
cr
am 1 Dez. 2022
Can you share a screenshot? What OS are you on?
See my screeshots from 17b and 22b


Andrew
am 2 Dez. 2022
cr
am 5 Dez. 2022
You are right. Never noticed it, never needed it. Not sure what purpose it's serving since the object can be accessed using the label property.
Andrew
am 6 Dez. 2022
Kategorien
Mehr zu Graphics Object Properties finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
