<html><head></head><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif;font-size:16px"><div id="yui_3_16_0_ym19_1_1465107666667_3467"><span>Hello,</span></div><div id="yui_3_16_0_ym19_1_1465107666667_3433"><span><br></span></div><div id="yui_3_16_0_ym19_1_1465107666667_3296"><span id="yui_3_16_0_ym19_1_1465107666667_3295">Thank You for your inputs.</span></div><div id="yui_3_16_0_ym19_1_1465107666667_3296" dir="ltr"><span id="yui_3_16_0_ym19_1_1465107666667_4028">1) I have updated my code and now I accept both types of input.</span></div><div id="yui_3_16_0_ym19_1_1465107666667_3296" dir="ltr"><span id="yui_3_16_0_ym19_1_1465107666667_3670">    </span><span style="font-family: 'Helvetica Neue', 'Segoe UI', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;" id="yui_3_16_0_ym19_1_1465107666667_3671">ut.tooltipstring = ["a","","c","d"]</span><span><br></span></div><div id="yui_3_16_0_ym19_1_1465107666667_3296" dir="ltr"><span style="font-family: 'Helvetica Neue', 'Segoe UI', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;">     and <br></span></div><div id="yui_3_16_0_ym19_1_1465107666667_3296" dir="ltr"><span style="font-family: 'Helvetica Neue', 'Segoe UI', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;" id="yui_3_16_0_ym19_1_1465107666667_3732">     </span><span style="font-family: 'Helvetica Neue', 'Segoe UI', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;" id="yui_3_16_0_ym19_1_1465107666667_3733">ut.tooltipstring = "[a,b,c,d]"</span><span style="font-family: 'Helvetica Neue', 'Segoe UI', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"><br></span></div><div id="yui_3_16_0_ym19_1_1465107666667_3296" dir="ltr"><span style="font-family: 'Helvetica Neue', 'Segoe UI', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;" id="yui_3_16_0_ym19_1_1465107666667_4462">   <br></span></div><div id="yui_3_16_0_ym19_1_1465107666667_3296" dir="ltr"><span style="font-family: 'Helvetica Neue', 'Segoe UI', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;" id="yui_3_16_0_ym19_1_1465107666667_4046">   The first one if the user want to input variables(string type) and also as Samuel suggested one can input only few non-empty strings    TT=emptystr(.string); TT([pos1 pos2 pos3..]) = ["tt1 "tt2" "tt3"...];<br></span></div><div id="yui_3_16_0_ym19_1_1465107666667_3296" dir="ltr"><span style="font-family: 'Helvetica Neue', 'Segoe UI', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;" id="yui_3_16_0_ym19_1_1465107666667_4548">    The second one if the user wants to just input strings(no variables) but dont want to input so many "" (This is my opinion)<br></span></div><div id="yui_3_16_0_ym19_1_1465107666667_3296" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1465107666667_3296" dir="ltr"><font face="Helvetica Neue, Segoe UI, Helvetica, Arial, Lucida Grande, sans-serif" id="yui_3_16_0_ym19_1_1465107666667_4567" size="3"><span id="yui_3_16_0_ym19_1_1465107666667_4566">2) Q: </span></font><span style="font-family: 'Helvetica Neue', 'Segoe UI', Helvetica, Arial, 'Lucida Grande', sans-serif;" id="yui_3_16_0_ym19_1_1465107666667_4671"><font size="3" id="yui_3_16_0_ym19_1_1465107666667_4730">Could you confirm that your implementation for the case 2) updates .tooltipstring when .string is modified?</font></span></div><div id="yui_3_16_0_ym19_1_1465107666667_3296" dir="ltr">     A: Yes, it does :)</div><div id="yui_3_16_0_ym19_1_1465107666667_3296" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1465107666667_3296" dir="ltr">3) If possible I wanted to know what exactly the flag I should use, I want to use a flag instead of passing the whole data because of the reason I described. So if you think its better to use flag then I would like to know which flag I should use.</div><div id="yui_3_16_0_ym19_1_1465107666667_3296" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1465107666667_3296" dir="ltr">4) Samuel: If possible I would like to complete the basic functionalities appropriately and then I will work on your suggestions, they seems to be useful for someone focused on uitables and I will be happy to provide them with these functionality.</div><div id="yui_3_16_0_ym19_1_1465107666667_3296" dir="ltr"><br></div><div id="yui_3_16_0_ym19_1_1465107666667_3296" dir="ltr">Thanking You</div><div id="yui_3_16_0_ym19_1_1465107666667_3296" dir="ltr">Rishubh Jain</div><div id="yui_3_16_0_ym19_1_1465107666667_3296" dir="ltr">   </div><div id="yui_3_16_0_ym19_1_1465107666667_3296" dir="ltr">    <br></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 Friday, 3 June 2016 3:25 AM, Samuel Gougeon <sgougeon@free.fr> wrote:<br></font></div>  <br><br> <div class="y_msg_container"><div id="yiv0854340517"><div>
    <div class="yiv0854340517moz-cite-prefix">Rishubh,<br clear="none">
      <br clear="none">
      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 clear="none">
      Could you confirm that your implementation for the case 2) updates
      .tooltipstring when .string is modified?<br clear="none">
      Case 3): i do not think that<br clear="none">
      ut.tooltipstring = "[a,b,c,d]"<br clear="none">
      instead of ut.tooltipstring = ["a","b","c","d"]<br clear="none">
      or<br clear="none">
      ut.tooltipstring = "[a,,c,d]"<br clear="none">
      instead of ut.tooltipstring = ["a","","c","d"]<br clear="none">
      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 clear="none">
      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 clear="none">
      <br clear="none">
      What's you opinion about <br clear="none">
      <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 clear="none">
        </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 clear="none">
          With restrictions: not applicable to LaTeX inputs ; not taking
          into account the font properties ; etc<br clear="none">
        </li></ul>
      Will you test the efficiency of the implementation with big
      .string and .tooltipstring arrays?<br clear="none">
       <br clear="none">
      Best regards<br clear="none">
      Samuel<br clear="none">
      <br clear="none">
      Le 02/06/2016 22:43, Rishubh Jain a écrit :<br clear="none">
    </div>
    <blockquote type="cite">
      <div class="yiv0854340517yqt3918339275" id="yiv0854340517yqt04855"><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="yiv0854340517yui_3_16_0_ym19_1_1464869335653_14056"><span><br clear="none">
          </span></div>
        <div id="yiv0854340517yui_3_16_0_ym19_1_1464869335653_14057"><span id="yiv0854340517yui_3_16_0_ym19_1_1464869335653_14154">Thankyou for
            inputs,</span></div>
        <div id="yiv0854340517yui_3_16_0_ym19_1_1464869335653_14058"><span><br clear="none">
          </span></div>
        <div dir="ltr" id="yiv0854340517yui_3_16_0_ym19_1_1464869335653_14046"><span id="yiv0854340517yui_3_16_0_ym19_1_1464869335653_14155">I have blogged my
            results :</span><a rel="nofollow" shape="rect" id="yiv0854340517yui_3_16_0_ym19_1_1464869335653_14044" target="_blank" href="http://batcode17.blogspot.in/2016/06/tooltips.html">http://batcode17.blogspot.in/2016/06/tooltips.html</a></div>
        <div dir="ltr" id="yiv0854340517yui_3_16_0_ym19_1_1464869335653_14046"><br clear="none">
        </div>
        <div dir="ltr" id="yiv0854340517yui_3_16_0_ym19_1_1464869335653_14046">Please
          suggest if its upto the expectation or what modifications
          should I make.</div>
        <div dir="ltr" id="yiv0854340517yui_3_16_0_ym19_1_1464869335653_14046"><br clear="none">
        </div>
        <div dir="ltr" id="yiv0854340517yui_3_16_0_ym19_1_1464869335653_14046">Thanking
          You</div>
        <div dir="ltr" id="yiv0854340517yui_3_16_0_ym19_1_1464869335653_14046">Rishubh</div>
        <div class="yiv0854340517qtdSeparateBR"><br clear="none">
          <br clear="none">
        </div>
        <div class="yiv0854340517yahoo_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 rel="nofollow" shape="rect" class="yiv0854340517moz-txt-link-rfc2396E" ymailto="mailto:sgougeon@free.fr" target="_blank" href="mailto:sgougeon@free.fr"><sgougeon@free.fr></a> wrote:<br clear="none">
                </font></div>
              <br clear="none">
              <br clear="none">
              <div class="yiv0854340517y_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="yiv0854340517yqt4979461581" id="yiv0854340517yqtfd04242"><br clear="none">
                  <br clear="none">
                  _______________________________________________<br clear="none">
                  dev mailing list<br clear="none">
                  <a rel="nofollow" shape="rect" ymailto="mailto:dev@lists.scilab.org" target="_blank" href="mailto:dev@lists.scilab.org">dev@lists.scilab.org</a><br clear="none">
                  <a rel="nofollow" shape="rect" target="_blank" href="http://lists.scilab.org/mailman/listinfo/dev">http://lists.scilab.org/mailman/listinfo/dev</a><br clear="none">
                </div>
                <br clear="none">
                <br clear="none">
              </div>
            </div>
          </div>
        </div>
      </div></div>
      <br clear="none">
      <fieldset class="yiv0854340517mimeAttachmentHeader"></fieldset>
      <br clear="none">
      <pre>_______________________________________________
dev mailing list
<a rel="nofollow" shape="rect" class="yiv0854340517moz-txt-link-abbreviated" ymailto="mailto:dev@lists.scilab.org" target="_blank" href="mailto:dev@lists.scilab.org">dev@lists.scilab.org</a>
<a rel="nofollow" shape="rect" class="yiv0854340517moz-txt-link-freetext" target="_blank" href="http://lists.scilab.org/mailman/listinfo/dev">http://lists.scilab.org/mailman/listinfo/dev</a>
</pre>
    </blockquote>
    <br clear="none">
  </div></div><br><br></div>  </div> </div>  </div></div></body></html>