MATLAB Answers

another app designer tooltip bug?

1 view (last 30 days)
G A
G A on 10 Jul 2020
Edited: G A on 11 Jul 2020
I have quite a few uicontrols in my_ App, which I have just migrated from GUIDE to Appdesigner. Because HTML does not work in Appdesigner, I started editing all my tooltips removing HTML code from them. Everything was OK up to some point. Beginning from that point, Appdesigner suddenly started adding additional apostrophes and brackets, such that those apostrophes and brackets are displayed explicitly in my_App. In the exported m-file, the following examples can be seen:
app.EditField.Tooltip = '''text1 example''';
app.EditField.Tooltip = '{''text2 example''}';
app.EditField.Tooltip = '{''text31'';''text32 example''}';
app.EditField.Tooltip = '{''''text4 example''''}';
It happens in tooltips for EditField.
All my attempts to remove not needed brackets and apostrophes using 'Inspector' (COMPONENT BROWSER) lead to adding additional apostrophes. Also, new attempt to edit previously correctly displayed tooltip text leads to addition of aliased apostrophes and/or brackets. After deleting the text from the box comletely, there are still brackets {}, which you cannot get rid of - they appear with mouse click automatically.
Is any way to stop this kind of activity from Appdesiner? Or what could went wrong? Of course, I can use the exported m-file and correct all the quoted tooltips there, however, it is annoying.
Finally, I have decided that the best strategy for me is to get rid of HTML in tooltips within GUIDE and then to migrate to Appdesigner.
version is r2020a

  0 Comments

Sign in to comment.

Answers (0)

Products


Release

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by