<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Rishubh,<br>
      <br>
      IMO, your initial "values" flag was a clear one. "~" is less
      clear. Why not "=" ?  I am not kind of "~" (that means "similar"
      that is "more or less equal"). A detail.<br>
      Could you confirm that your implementation for the case 2) updates
      .tooltipstring when .string is modified?<br>
      Case 3): i do not think that<br>
      ut.tooltipstring = "[a,b,c,d]"<br>
      instead of ut.tooltipstring = ["a","b","c","d"]<br>
      or<br>
      ut.tooltipstring = "[a,,c,d]"<br>
      instead of ut.tooltipstring = ["a","","c","d"]<br>
      would be clear enough. "[a,b,c,d]" could be easily interpreted by
      users as [content_of variable_named_a, ... etc], as if
      eval("[a,b,c,d]") had to feed .tooltipstring<br>
      Putting only a few non-empty strings in the whole table could be
      done with TT=emptystr(.string); TT([pos1 pos2 pos3..]) = ["tt1
      "tt2" "tt3"...];<br>
      <br>
      What's you opinion about <br>
      <ul>
        <li>a way to make uitable displaying tooltips only for cells not
          wide enough? IMO, it would be useful, but a difficult task,
          depending on the font properties, and whether LaTeX is used or
          not, etc... <br>
        </li>
        <li>a way to make uitable displaying values in tooltips only for
          chosen columns? could be done with a row of indices of chosen
          colums to be tooltiped?</li>
        <li>a way to make uitable displaying values in tooltips with
          lengths above a given threshold given as a single number?<br>
          With restrictions: not applicable to LaTeX inputs ; not taking
          into account the font properties ; etc<br>
        </li>
      </ul>
      Will you test the efficiency of the implementation with big
      .string and .tooltipstring arrays?<br>
       <br>
      Best regards<br>
      Samuel<br>
      <br>
      Le 02/06/2016 22:43, Rishubh Jain a écrit :<br>
    </div>
    <blockquote
cite="mid:1252547456.3026864.1464900235842.JavaMail.yahoo@mail.yahoo.com"
      type="cite">
      <div style="color:#000; background-color:#fff;
        font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial,
        Lucida Grande, Sans-Serif;font-size:16px">
        <div><span>Hi,</span></div>
        <div id="yui_3_16_0_ym19_1_1464869335653_14056"><span><br>
          </span></div>
        <div id="yui_3_16_0_ym19_1_1464869335653_14057"><span
            id="yui_3_16_0_ym19_1_1464869335653_14154">Thankyou for
            inputs,</span></div>
        <div id="yui_3_16_0_ym19_1_1464869335653_14058"><span><br>
          </span></div>
        <div id="yui_3_16_0_ym19_1_1464869335653_14046" dir="ltr"><span
            id="yui_3_16_0_ym19_1_1464869335653_14155">I have blogged my
            results :</span><a moz-do-not-send="true"
            href="http://batcode17.blogspot.in/2016/06/tooltips.html"
            id="yui_3_16_0_ym19_1_1464869335653_14044">http://batcode17.blogspot.in/2016/06/tooltips.html</a></div>
        <div id="yui_3_16_0_ym19_1_1464869335653_14046" dir="ltr"><br>
        </div>
        <div id="yui_3_16_0_ym19_1_1464869335653_14046" dir="ltr">Please
          suggest if its upto the expectation or what modifications
          should I make.</div>
        <div id="yui_3_16_0_ym19_1_1464869335653_14046" dir="ltr"><br>
        </div>
        <div id="yui_3_16_0_ym19_1_1464869335653_14046" dir="ltr">Thanking
          You</div>
        <div id="yui_3_16_0_ym19_1_1464869335653_14046" dir="ltr">Rishubh</div>
        <div class="qtdSeparateBR"><br>
          <br>
        </div>
        <div class="yahoo_quoted" style="display: block;">
          <div style="font-family: HelveticaNeue, Helvetica Neue,
            Helvetica, Arial, Lucida Grande, Sans-Serif; font-size:
            16px;">
            <div style="font-family: HelveticaNeue, Helvetica Neue,
              Helvetica, Arial, Lucida Grande, Sans-Serif; font-size:
              16px;">
              <div dir="ltr"><font size="2" face="Arial"> On Thursday, 2
                  June 2016 11:58 PM, Samuel Gougeon
                  <a class="moz-txt-link-rfc2396E" href="mailto:sgougeon@free.fr"><sgougeon@free.fr></a> wrote:<br>
                </font></div>
              <br>
              <br>
              <div class="y_msg_container">Hello,<br clear="none">
                <br clear="none">
                Thanks Rishubh for your proposal.<br clear="none">
                <br clear="none">
                Le 02/06/2016 15:56, Clément David a écrit :<br
                  clear="none">
                > Hi Rish,<br clear="none">
                ><br clear="none">
                > I guess the simpler proposal is the better, from a
                user point of view :<br clear="none">
                ><br clear="none">
                >> 1)  "no value" : no tooltip is displayed<br
                  clear="none">
                > Simply use the empty matrix scilab symbol [] for
                empty or none representation.<br clear="none">
                ><br clear="none">
                > ```scilab<br clear="none">
                > o = uicontrol("table", ...);<br clear="none">
                > o.tooltips = []<br clear="none">
                .<br clear="none">
                .tooltips expecting a string, IMO "" would even be
                clearer than <br clear="none">
                providing a constant and less specific type [].<br
                  clear="none">
                But both could be supported.<br clear="none">
                <br clear="none">
                >> 2)  "values" (special flag): The value of each
                cell is tooltiped when overflying it.<br clear="none">
                >> This mode is required to ensure that the
                contents of too narrow cells can be fully seen without<br
                  clear="none">
                >> editing the cell.<br clear="none">
                .<br clear="none">
                Definitively yes. This proposal will be able to
                automatically update <br clear="none">
                .tooltips when modifying .data.<br clear="none">
                Exactly what is needed, and the best way to avoid
                discrepancies.<br clear="none">
                <br clear="none">
                > This is a corner-case that can be easily
                implemented in a generic way. To display all the values
                as<br clear="none">
                > tooltips, implement something like :<br
                  clear="none">
                ><br clear="none">
                > ```scilab<br clear="none">
                > o = uicontrol("table", ...);<br clear="none">
                > o.tooltips = o.data;<br clear="none">
                ><br clear="none">
                > ```<br clear="none">
                ><br clear="none">
                >> 3)  "TT":  where TT is a matrix of strings of
                .strings size: When overflying the cell(i,j), the<br
                  clear="none">
                >> tooltip's content is the        TT(i,j) content
                + \n + the cell(i,j) content.<br clear="none">
                > Again this seems to be complex and hard to
                understand by the end user. Using a string matrix will<br
                  clear="none">
                > allow a simple definition of what a tooltip is.
                Ignore the empty string "" to let the user undefine<br
                  clear="none">
                > a tooltip for a specific cell ; othewise any string
                value might be used as a tooltip.<br clear="none">
                Yes, finally i rather agree with this. The first idea
                was to have a <br clear="none">
                "cumulated" mode (entries + comment) as the default.<br
                  clear="none">
                But being able to set only a comment would be better. If
                we want to <br clear="none">
                display entries as well,<br clear="none">
                doing a element-wise .tooltips = comment + .data will be
                very simple, <br clear="none">
                and more customizable:<br clear="none">
                if we want entries in heading lines instead of trailing
                ones, .tooltips <br clear="none">
                = .data + comments will do i.<br clear="none">
                ><br clear="none">
                > ```scilab<br clear="none">
                > o = uicontrol("table", ...);<br clear="none">
                > o.tooltips = ["tooltip for (1,1)" "tooltip for
                (1,2)" "tooltip for (1,3)"<br clear="none">
                >                "tooltip for (2,1)" "tooltip for
                (2,2)" ""]<br clear="none">
                ><br clear="none">
                > ```<br clear="none">
                ><br clear="none">
                > Thanks for any remarks,<br clear="none">
                I was somewhat wondering about the way the heading line
                and column will <br clear="none">
                be declared when needed,<br clear="none">
                and then where (in .data($,:) and .data(:,$), to be
                rendered in (1,:) <br clear="none">
                and (:,1)). But finally, even them could<br clear="none">
                need some tooltips. No reason to exclude tooltips for
                them.<br clear="none">
                <br clear="none">
                <br clear="none">
                Hoping to read other comments soon,<br clear="none">
                <br clear="none">
                Samuel
                <div class="yqt4979461581" id="yqtfd04242"><br
                    clear="none">
                  <br clear="none">
                  _______________________________________________<br
                    clear="none">
                  dev mailing list<br clear="none">
                  <a moz-do-not-send="true" shape="rect"
                    ymailto="mailto:dev@lists.scilab.org"
                    href="mailto:dev@lists.scilab.org">dev@lists.scilab.org</a><br
                    clear="none">
                  <a moz-do-not-send="true" shape="rect"
                    href="http://lists.scilab.org/mailman/listinfo/dev"
                    target="_blank">http://lists.scilab.org/mailman/listinfo/dev</a><br
                    clear="none">
                </div>
                <br>
                <br>
              </div>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:dev@lists.scilab.org">dev@lists.scilab.org</a>
<a class="moz-txt-link-freetext" href="http://lists.scilab.org/mailman/listinfo/dev">http://lists.scilab.org/mailman/listinfo/dev</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>