uicontrol(table): scalar ui.tooltipstring is displayed only on the border (and NW corner). a matrix tooltipstring would be useful
Reported by Samuel GOUGEON (@sgougeon)
// Example:
params = [" " "Country" "Population [Mh]" ];
towns = ["Mexico" "Paris" "Tokyo" "Singapour"]';
country = ["Mexico" "France" "Japan" "Singapour"]';
pop = string([22.41 11.77 33.41 4.24]');
table = [params; [ towns country pop ]]
f = gcf(); clf, as = f.axes_size;
ut = uicontrol("style","table",..
"string",table,..
"position",[5 as(2)-100 300 87],..
"tooltipstring","Data from majors towns")
// The string "Data from majors towns" is displayed only
// when the mouse is on a area not covered by cells.
// => not really useful
// PROPOSAL:
* FIX: when tooltipstring is a scalar string, it should be displayed on the whole table. Much more useful:
* WISH: It would be interesting to be able to provide a matrix of tooltip
strings of the same format that the table, in order to display element-wise
tooltips, including for the columns and rows headers.
For instance, this would be very useful to document the input format
for each cell.
But other cases for which element-wise tooltips would be useful are numerous.