How can I modify tooltip delays in my application designed in Application Designer?
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Fletcher Young
le 16 Déc 2021
Réponse apportée : Adam Danz
le 16 Déc 2021
I would like to change some properties of all tooltips in my application. I've found a suggestion to utilize the following command:
tm = javax.swing.ToolTipManager.sharedInstance; %static method to get ToolTipManager object
javaMethodEDT('setInitialDelay',tm,10000); % Increase delay to 10 seconds
However, when I insert this snippet of code into my startupFcn, it has no effect. Is there a way to implement this code in App Designer to configure the delay of tooltips?
0 commentaires
Réponse acceptée
Adam Danz
le 16 Déc 2021
Java methods are not supported by uifigures.
See a similar thread: https://www.mathworks.com/matlabcentral/answers/396625-how-can-i-put-a-javacomponent-in-the-app-designer#answer_393213
Unfortunately I am unaware of workaround. My apps usually contain a checkbox option in the options menu to toggle off/on tooltips. When toggled off, the app stores all component tootip text and replaces the tooltips empty chars (''). When toggled back on, the original component tooltips are restored.
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Develop Apps Using App Designer dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!