App Designer Tooltip for long cell content in UITable is covered by other objects
17 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I have some problems in App Designer with the automatic Tooltips in UITable for too long text in a cell. If you have a cell with too long text, it shows three dots, that shows the user, that hovering will give a tooltip that shows the full text.
The tooltip is not always on the front, it depends on the creation order of the UITables. But I want to have this automated tooltips always on top, since they are very usefull and prevent scrolling always to the right, if the cell contains a lot of text. And I don't want to delete all the elements of my app and add them in the right order, to prevent overlapping.
Is there any possible way to force this type of tooltip to be always on the front?
I am using Matlab 2019b
Thank you in advance!
Here an example:
I created 3 UITables, first "UITable1", second "UITable2" and then "UITable3". The ColumWidths are fixed to a value to prevent scrolling, and this leads to the 3 dots, which show the user, that if you hover over it, the tooltip appears.
The second column I filled then with long text:
% Code that executes after component creation
function startupFcn(app)
names = {'Lore'; 'Another'};
lore = {'Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.'; 'Again a too long text for the field'};
app.UITable1.Data = names;
app.UITable2.Data = names;
app.UITable3.Data = names;
app.UITable1.Data(:,2) = lore;
app.UITable2.Data(:,2) = lore;
app.UITable3.Data(:,2) = lore;
end
Results in this app:
So if I hover over the text of the "UITable1" the tooltip is covered by "UITable3", because Table3 was created after Table1:
If I hover over text of Table3 it is in front of Table2, because Table3 was created after Table2:
0 Kommentare
Antworten (1)
Sahithi Kanumarlapudi
am 24 Jan. 2020
Hi Tim,
I have brought this issue to the notice of our developers. They will investigate the matter further.
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!