How can I modify tooltip delays in my application designed in Application Designer?

2 次查看(过去 30 天)
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?

采纳的回答

Adam Danz
Adam Danz 2021-12-16
Java methods are not supported by uifigures.
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 个)

类别

Help CenterFile Exchange 中查找有关 Develop Apps Using App Designer 的更多信息

产品


版本

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by