tooltip in App Designer
37 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Pappu Murthy
le 2 Nov 2018
Commenté : Cris LaPierre
le 15 Nov 2019
In my App designer for one of the panels I defined a tooltip. Now I want to get rid of it. Everytime i highlight and get rid of it in Code design view, I get a long series of read error messages but the tool string does not get removed. I can't go into code view and delete the line for tooltip string either as it is grayed out. So my question is how do I completely get rid of it without deleting the panel altogether and start over again?
6 commentaires
Cris LaPierre
le 23 Nov 2018
What are you setting as the tip? I see this in your error messages:
Error setting property 'Tooltip' of class 'Panel':
UIStrings data type does not support numeric values.
Réponse acceptée
Cris LaPierre
le 23 Nov 2018
Modifié(e) : Cris LaPierre
le 23 Nov 2018
I see it now. This looks like a bug to me. I'll report it. If you do not want the tooltip to appear, the best workaround I can think of is to add the following to your startupFcn Callback.
app.Panel.Tooltip = '';
Of course, replace Panel with whatever you named it.
5 commentaires
Daniel Bailey
le 12 Avr 2019
Modifié(e) : Daniel Bailey
le 12 Avr 2019
@Jake Shea & @Robert:
As far as backwards compatibility goes. I was able to remove blank tooltips from the code by opening it in a version that predates 'Tooltips' release.
To be exact with what I did:
Steps 1-3 completed in MATLAB 2019a
1) Deleted all Tooltip text
2) Save Copy As
3) Save as type: MATLAB 2017b APP (*.mlapp)
Steps 4-5 completed in MATLAB 2017b
4) Opened MATLAB 2017b
5) Right clicked to open *.mlapp file
At this point all of the tooltips had dissapeared from the code.
Interestingly enough, only saving the file as an earlier version did NOT fix the problem. Only at the point that the code was opened in app designer did the app.*.Tooltip = {''}; code dissapear.
Plus de réponses (1)
Johan
le 15 Nov 2019
Anybody know if this bug has been fixed in the newest version of Matlab?
2018B definitely still has this problem.
1 commentaire
Voir également
Catégories
En savoir plus sur Develop Apps Using App Designer dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!