[Scilab-Dev] Regarding tooltps in uitable
Clément David
clement.david at scilab-enterprises.com
Thu Jun 2 15:56:24 CEST 2016
Hi Rish,
I guess the simpler proposal is the better, from a user point of view :
> 1) "no value" : no tooltip is displayed
Simply use the empty matrix scilab symbol [] for empty or none representation.
```scilab
o = uicontrol("table", ...);
o.tooltips = []
```
> 2) "values" (special flag): The value of each cell is tooltiped when overflying it.
> This mode is required to ensure that the contents of too narrow cells can be fully seen without
> editing the cell.
This is a corner-case that can be easily implemented in a generic way. To display all the values as
tooltips, implement something like :
```scilab
o = uicontrol("table", ...);
o.tooltips = o.data;
```
> 3) "TT": where TT is a matrix of strings of .strings size: When overflying the cell(i,j), the
> tooltip's content is the TT(i,j) content + \n + the cell(i,j) content.
Again this seems to be complex and hard to understand by the end user. Using a string matrix will
allow a simple definition of what a tooltip is. Ignore the empty string "" to let the user undefine
a tooltip for a specific cell ; othewise any string value might be used as a tooltip.
```scilab
o = uicontrol("table", ...);
o.tooltips = ["tooltip for (1,1)" "tooltip for (1,2)" "tooltip for (1,3)"
"tooltip for (2,1)" "tooltip for (2,2)" ""]
```
Thanks for any remarks,
--
Clément
More information about the dev
mailing list