App Designer - ListBox Tooltip for too long entries not there any more in 2019b

10 次查看(过去 30 天)
I made an app with App Designer in Matlab 2018a. Now I swichtched to 2019b.
In my app are a lot of list boxes with entries that are too long for showing it completely. In 2018a too long entries ended with "..." and if you hover over it, a tooltip appeared, that showed the full entry text.
Now in 2019b this is not the case any more. I tried all the options in the graphic version of the app designer, but could not solve the problem. I want to avoid useless scrolling to the right and left. So I want the tooltips back.
Is there any way to get a tooltip in 2019b , like in the 2018a app designer?
Thank you!
2018a (too long entries with three dots, and if you hover over an entry, you see the full text):
2019b (text just cut, but therefore the scrollbar is there, hovering not possible):

回答(1 个)

Cameron B
Cameron B 2020-1-7
How did you originally get the tooltip to specify only the line you're hovering on in 2018a? The only way I know is to use mouse wheel movement callbacks, but maybe there's another method. Every time I use tooltip it just shows the entire contents of the tooltip cell array.
  5 个评论
Cameron B
Cameron B 2020-1-9
Do you need to be able to select multiple items at once? If not, you can use the uidropdown feature instead. This might be easier than all other suggestions which may include java or other undocumented matlab work.
Tim P
Tim P 2020-1-9
编辑:Tim P 2020-1-9
No I don't need multiple selection. But the tooltip should appear also if the item is not selected.
What I need for my app: I have a list loaded, and every entry corresponding to a measurement data file. The App plots all of the measurements. If I klick on one measurement in the list, it shows in a table the details of this measurement, such as Date, used Settings, Equipment, etc... But the names of the measurements are pretty long, and for example if I have measurments of the same sample with different settings, the file-names start the same, but end different. So in 2018a it was possible to see the full file-name by hovering over the file name. As seen in the screenshot above (3 dots and tooltip if it is hovered).
By uiDropDown you mean that I should use a drop down menu? Sadly not possible. I need to see all the data names. They are also used as color legend for the plots...

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Migrate GUIDE Apps 的更多信息

产品


版本

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by