Latex interpreter for "Edit field" label in App Designer
Show older comments
Hi everyone,
I'm currently developing a GUI by using Matlab R2021a App Designer. I need to have an "Edit field" label interpreted with latex whose fontsize should be 14. I alreay set the app.EditFiledLabel.fontsize = 14 property in the TEXT inspector and it works proprly. Unfortunately, every time the app is restared the label fontsize always comes back to 12 without any possibility to be modified. I tried to specify the app.EditFiledLabel.fontsize = 14 property at the startup and in some callbacks with no result.
Did anyone have the same issue? Are there suggentions to solve the problem?
Thank you all.
Filippo
3 Comments
dpb
on 27 Mar 2021
I can't reproduce the FontSize behavior with R2019b; the create section of the code sets the FontSize = 14 and shows that way on the running app -- using debugger I can dynamically set the fontsize programmatically.
There's a TMW post that as or R2018b there is no 'Interpreter' property for the text label; that appears to also be true in R2019b; dunno about later release.
What does the creation code section for the control in question show? It's not user-editable in the app designer window, but should show the setting of the font size for the control.
Filippo Ambrosino
on 27 Mar 2021
Edited: dpb
on 28 Mar 2021
dpb
on 27 Mar 2021
Well, that would then seem to be a bug.
The suggestion in the TMW link I referred to above was that the workaround for lack of LaTeX interpreter would be to generate the string outside and put it into the field externally/manually. This is obviously limited to static text, of course.
Accepted Answer
More Answers (0)
Categories
Find more on Axis Labels 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!